summaryrefslogtreecommitdiffstats
path: root/templates/todolists/view.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-27 17:04:00 +0200
committerDan McGee <dan@archlinux.org>2010-08-27 17:04:00 +0200
commit538f57c7446397b44036a0f3e068b298a43e4d70 (patch)
tree516b276af709fd4395d0c5be8fcd4e91c6b10a3f /templates/todolists/view.html
parentff427f6d9bbcedebcdfc671bc13ab54a225b6cdf (diff)
downloadarchweb-538f57c7446397b44036a0f3e068b298a43e4d70.tar.gz
archweb-538f57c7446397b44036a0f3e068b298a43e4d70.tar.xz
Make public todolist view more useful
Show all the details the developer page does, make the lists always visible, and add JS table sorting to each table on the page. This commit also adds table sorting to the developer list view as well. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists/view.html')
-rw-r--r--templates/todolists/view.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 1c25392..b5f9a32 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -19,7 +19,7 @@
<p>{{list.description|safe|linebreaks}}</p>
- <table id="dev-todo-pkglist" class="results">
+ <table id="dev-todo-pkglist" class="results todo-table">
<thead>
<tr>
<th>Name</th>
@@ -50,10 +50,9 @@
{% endfor %}
</tbody>
</table>
-
-</div><!-- #dev-todo-details -->
-
+</div>
{% load cdn %}{% jquery %}
+<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(function() {
$('a[href*=todo/flag]').click(function() {
@@ -70,5 +69,8 @@
return false;
});
});
+$(document).ready(function() {
+ $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0], [1,0]]});
+});
</script>
{% endblock %}