forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliaison_table.html
More file actions
39 lines (39 loc) · 1.64 KB
/
liaison_table.html
File metadata and controls
39 lines (39 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% load ietf_filters %}
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="date">Date</th>
<th data-sort="from">From</th>
<th data-sort="to">To</th>
<th data-sort="date">Deadline</th>
<th data-sort="title">Title</th>
</tr>
</thead>
{% if liaisons %}
<tbody>
{% for liaison in liaisons %}
<tr>
<td class="text-nowrap">{{ liaison.sort_date|date:"Y-m-d" }}</td>
<td class="liaison-group-col">{{ liaison.from_groups_display }}</td>
<td class="liaison-group-col">{{ liaison.to_groups_display }}</td>
<td class="text-nowrap">
{{ liaison.deadline|default:"-"|date:"Y-m-d" }}
{% if liaison.deadline and not liaison.action_taken %}
<br>
<span class="badge
{% if liaison.is_outgoing %}
bg-warning
{% else %}
bg-info
{% endif %}">Action needed</span>
{% endif %}
</td>
<td>
<a href="{% url "ietf.liaisons.views.liaison_detail" object_id=liaison.pk %}">{{ liaison.title }}</a>
</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
</table>