From ec7130f6ac194ce7ad53d06e3169030b16da6fed Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 7 Apr 2012 14:50:26 -0500 Subject: Allow sorting of lower table on master keys page Add some styling for sortable pretty2 tables to the CSS, and convert the header row into a single row since that is all tablesorter seems to support correctly when assigning styles. Signed-off-by: Dan McGee --- sitestatic/archweb.css | 17 +++++++++++++++++ templates/public/keys.html | 23 ++++++++++++++--------- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css index ac0dff52..a7fe6cac 100644 --- a/sitestatic/archweb.css +++ b/sitestatic/archweb.css @@ -258,6 +258,23 @@ table.pretty2 { border: 1px solid #bbb; } + /* additional styles for JS sorting */ + table.pretty2 th.header { + padding-right: 20px; + background-image: url(nosort.gif); + background-repeat: no-repeat; + background-position: center right; + cursor: pointer; + } + + table.pretty2 th.headerSortDown { + background-image: url(desc.gif); + } + + table.pretty2 th.headerSortUp { + background-image: url(asc.gif); + } + table.pretty2 td { padding: 0.35em; border: 1px dotted #bbb; diff --git a/templates/public/keys.html b/templates/public/keys.html index a7c91c43..05524c48 100644 --- a/templates/public/keys.html +++ b/templates/public/keys.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load static from staticfiles %} {% load pgp %} {% block title %}Arch Linux - Master Signing Keys{% endblock %} @@ -66,17 +67,11 @@ - + {% for key in keys %} - - {% endfor %} - - - - - {% for key in keys %} - + {% endfor %} @@ -94,4 +89,14 @@
Developer PGP Key{{ key.owner.get_full_name }}
{% pgp_key_link key.pgp_key %}{{ key.owner.get_full_name }}
+ {% pgp_key_link key.pgp_key %}
+{% load cdn %}{% jquery %} + + + {% endblock %} -- cgit v1.2.3-55-g3dc8