diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 12:44:12 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 12:44:15 -0500 |
commit | f46e5b1a94c845ea2125b4f9d6777dff56c9ad29 (patch) | |
tree | 7248080d5f74fe38754ad4d2fbbb377cad811fa3 /templates/packages/packages_list.html | |
parent | eb6aaf6759ac6626c06612dbde9b160927501f3b (diff) |
Generalize group details page
We will be able to use this same table-based package listing elsewhere.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/packages_list.html')
-rw-r--r-- | templates/packages/packages_list.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/packages/packages_list.html b/templates/packages/packages_list.html new file mode 100644 index 00000000..c897aac5 --- /dev/null +++ b/templates/packages/packages_list.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - {{ name }} ({{ arch.name }}) - {{ list_title }}{% endblock %} +{% block navbarclass %}anb-packages{% endblock %} + +{% block content %} +<div class="box"> + <h2>{{ list_title }} - {{ name }} ({{ arch.name }})</h2> + <table class="results"> + <thead> + <tr> + <th>Arch</th> + <th>Repo</th> + <th>Name</th> + <th>Version</th> + <th>Description</th> + <th>Last Updated</th> + <th>Flag Date</th> + </tr> + </thead> + <tbody> + {% for pkg in packages %} + <tr class="{% cycle 'odd' 'even' %}"> + <td>{{ pkg.arch.name }}</td> + <td>{{ pkg.repo.name|capfirst }}</td> + <td><a href="{{ pkg.get_absolute_url }}" + title="Package details for {{ pkg.pkgname }}">{{ pkg.pkgname }}</a></td> + {% if pkg.flag_date %} + <td><span class="flagged">{{ pkg.full_version }}</span></td> + {% else %} + <td>{{ pkg.full_version }}</td> + {% endif %} + <td class="wrap">{{ pkg.pkgdesc }}</td> + <td>{{ pkg.last_update|date }}</td> + <td>{{ pkg.flag_date|date }}</td> + </tr> + {% endfor %} + </tbody> + </table> +</div> +{% load cdn %}{% jquery %} +<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> +<script type="text/javascript"> +$(document).ready(function() { + $(".results").tablesorter({widgets: ['zebra'], sortList: [[2,0]]}); +}); +</script> +{% endblock %} |