Use js tablesort almost everywhere I thought it would make sense. While I
touched the pages, I also corrected a few minor HTML nits, capitalization
inconsistencies and some other minor things.
Range r10605:r10621
- Legacy-Id: 10647
Note: SVN reference [10621] has been migrated to Git commit 7d3c2681e2
41 lines
1.7 KiB
HTML
41 lines
1.7 KiB
HTML
{# Copyright The IETF Trust 2007, All Rights Reserved #}
|
|
{% load ietf_filters %}
|
|
{% load future %}
|
|
|
|
<table class="table table-condensed table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<a href="?sort=date">Date {% if sort == "date" %}<span class="fa fa-caret-down"></span>{% endif %}</a>
|
|
</th>
|
|
<th>
|
|
<a href="?sort=from_groups">From {% if sort == "from_groups" %}<span class="fa fa-caret-down"></span>{% endif %}</a>
|
|
</th>
|
|
<th>
|
|
<a href="?sort=to_groups">To {% if sort == "to_groups" %}<span class="fa fa-caret-down"></span>{% endif %}</a>
|
|
</th>
|
|
<th>
|
|
<a href="?sort=deadline">Deadline {% if sort == "deadline" %}<span class="fa fa-caret-down"></span>{% endif %}</a>
|
|
</th>
|
|
<th>
|
|
<a href="?sort=title">Title {% if sort == "title" %}<span class="fa fa-caret-down"></span>{% endif %}</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<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="label {% if liaison.is_outgoing %}label-warning{% else %}label-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>
|
|
</table>
|