Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 1 | <div class="web-list-item transaction-list-item"> |
Faris Ansari | b8eaa3d | 2019-06-01 20:56:37 +0530 | [diff] [blame] | 2 | <a href="/issues?name={{ doc.name }}" class="no-underline"> |
prssanna | f1dbc02 | 2021-03-16 14:15:59 +0530 | [diff] [blame] | 3 | <div class="row py-4"> |
Faris Ansari | b8eaa3d | 2019-06-01 20:56:37 +0530 | [diff] [blame] | 4 | <div class="col-3 d-flex align-items-center"> |
Suraj Shetty | b6ebcd7 | 2020-08-27 18:57:18 +0530 | [diff] [blame] | 5 | {% set indicator = 'red' if doc.status == 'Open' else 'gray' %} |
Faris Ansari | b8eaa3d | 2019-06-01 20:56:37 +0530 | [diff] [blame] | 6 | {% set indicator = 'green' if doc.status == 'Closed' else indicator %} |
| 7 | <span class="d-inline-flex indicator {{ indicator }}"></span> |
| 8 | {{ doc.name }} |
| 9 | </div> |
| 10 | <div class="col-5 text-muted"> |
| 11 | {{ doc.subject }}</div> |
| 12 | <div class="col-2 d-flex align-items-center text-muted"> |
Suraj Shetty | b6ebcd7 | 2020-08-27 18:57:18 +0530 | [diff] [blame] | 13 | {% set indicator = 'red' if doc.status == 'Open' else 'gray' %} |
Faris Ansari | b8eaa3d | 2019-06-01 20:56:37 +0530 | [diff] [blame] | 14 | {% set indicator = 'green' if doc.status == 'Closed' else indicator %} |
| 15 | {% set indicator = 'orange' if doc.status == 'Open' and doc.priority == 'Medium' else indicator %} |
| 16 | {% set indicator = 'yellow' if doc.status == 'Open' and doc.priority == 'Low' else indicator %} |
| 17 | <span class="d-inline-flex indicator {{ indicator }}"></span> |
| 18 | {% if doc.status == "Open" %} |
| 19 | {{ doc.priority }} |
| 20 | {% else %} |
| 21 | {{ doc.status }} |
| 22 | {%- endif -%} |
| 23 | </span> |
| 24 | </div> |
| 25 | <div class="col-2 text-right text-muted"> |
| 26 | {{ frappe.format_date(doc.modified) }} |
| 27 | </div> |
| 28 | </div> |
| 29 | </a> |
Rushabh Mehta | a33d468 | 2015-06-01 17:15:42 +0530 | [diff] [blame] | 30 | </div> |