summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-30 19:28:11 +0100
committerDan McGee <dan@archlinux.org>2011-11-30 19:29:27 +0100
commitb05eae96a4be8990a1de81795013587ded7ed3aa (patch)
treecaf383099123688099c1f73c83d33458d6b70b8e /templates
parent9279d9a04cc99691ab6c7fbafe7db03a757d23e8 (diff)
downloadarchweb-b05eae96a4be8990a1de81795013587ded7ed3aa.tar.gz
archweb-b05eae96a4be8990a1de81795013587ded7ed3aa.tar.xz
Add more precise sort for last update signoff column
This allows sorting by the exact time recorded in the database, even if we don't show it directly to the user, which makes finding the most recent updates a lot easier. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/signoffs.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
index bd84289..b032e65 100644
--- a/templates/packages/signoffs.html
+++ b/templates/packages/signoffs.html
@@ -56,7 +56,7 @@
<td>{{ group.target_repo }}</td>
<td>{{ group.packager|default:"Unknown" }}</td>
<td>{{ group.packages|length }}</td>
- <td>{{ group.last_update|date }}</td>
+ <td class="epoch-{{ group.last_update|date:'U' }}">{{ group.last_update|date }}</td>
{% if group.specification.known_bad %}
<td class="approval signoff-bad">Bad</td>
{% else %}
@@ -85,7 +85,7 @@
$(document).ready(function() {
$('a.signoff-link').click(signoff_package);
$(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0]],
- headers: { 7: { sorter: false }, 8: {sorter: false } } });
+ headers: { 5: { sorter: 'epochdate' }, 7: { sorter: false }, 8: {sorter: false } } });
$('#signoffs_filter input').change(filter_signoffs);
$('#criteria_reset').click(filter_signoffs_reset);
// fire function on page load to ensure the current form selections take effect