Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 1 | {% for timeline in doc.timelines %} |
Kanchan Chauhan | 2ad801c | 2016-03-22 16:00:41 +0530 | [diff] [blame] | 2 | <article class="timeline-entry"> |
| 3 | <div class="timeline-entry-inner"> |
| 4 | <div class="timeline-icon {{ "bg-danger" if ((timeline.reference_name).startswith('ISS') and (timeline.subject).startswith('Open')) else "bg-warning" if ((timeline.reference_name).startswith('TASK') and (timeline.subject).startswith('Open')) else "bg-success" if (timeline.subject).startswith('Closed') else "bg-info"}}"> |
| 5 | </div> |
| 6 | <div class="timeline-label"> |
| 7 | <span class="avatar avatar-small" title="{{ timeline.modified_by }}"> <img src="{{ timeline.user_image }}"></span> |
| 8 | <span class='indicator'> |
| 9 | {{timeline.reference_name}} {{timeline.subject }} |
| 10 | </span> |
| 11 | <span class='indicator pull-right'> |
| 12 | {{ frappe.utils.pretty_date(timeline.creation) }} |
| 13 | </span> |
| 14 | </div> |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 15 | </div> |
Kanchan Chauhan | 2ad801c | 2016-03-22 16:00:41 +0530 | [diff] [blame] | 16 | </article> |
| 17 | {% endfor %} |