diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-22 20:21:40 -0700 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-22 20:21:40 -0700 |
commit | 69fd83df03806585c3b7d6b115af916a73f4ae41 (patch) | |
tree | 2d20fa18262cd9e71e4ed7fa7795fd1bf5556ccb /templates/releng/release_list.html | |
parent | 85dc9d6df9f9038be6049aefbf8eb9ea94f9f23c (diff) |
Spice up the release listing page a bit
Add JS tablesorter code and add some style to the yesno column.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/releng/release_list.html')
-rw-r--r-- | templates/releng/release_list.html | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/templates/releng/release_list.html b/templates/releng/release_list.html index 1657249f..84008541 100644 --- a/templates/releng/release_list.html +++ b/templates/releng/release_list.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load url from future %} +{% load static from staticfiles %} {% block title %}Arch Linux - Releases{% endblock %} @@ -9,7 +10,6 @@ {% block content %} <div id="release-list" class="box"> - <h2>Releases</h2> <table id="release-table" class="results"> @@ -28,9 +28,9 @@ {% for item in release_list %} <tr class="{% cycle 'odd' 'even' %}"> <td>{{ item.release_date|date }}</td> - <td><a href="{{ item.get_absolute_url }}" title="Release details for {{ item.version }}">{{ item.version }}</a></td> + <td><a href="{{ item.get_absolute_url }}" title="Release details for {{ item.version }}">{{ item.version }}</a></td> <td>{{ item.kernel_version|default:"" }}</td> - <td>{{ item.available|yesno }}</td> + <td class="available-{{ item.available|yesno }}">{{ item.available|yesno|capfirst }}</td> <td>{% if item.available %}<a href="https://www.archlinux.org/{{ item.iso_url }}.torrent" title="Download torrent for {{ item.version }}">Torrent</a>{% endif %}</td> <td>{% if item.available %}<a href="{{ item.magnet_uri }}">Magnet</a>{% endif %}</td> @@ -39,6 +39,17 @@ {% endfor %} </tbody> </table> - </div> + +{% load cdn %}{% jquery %}{% jquery_tablesorter %} +<script type="text/javascript" src="{% static "archweb.js" %}"></script> +<script type="text/javascript"> +$(document).ready(function() { + $(".results").tablesorter({ + widgets: ['zebra'], + sortList: [[0,1], [1,1]], + headers: { 4: { sorter: false }, 5: { sorter: false } } + }); +}); +</script> {% endblock %} |