summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-27 17:05:59 -0500
committerDan McGee <dan@archlinux.org>2010-08-27 17:06:07 -0500
commitddc4b974fe44832c696724d512fd9b935f5085df (patch)
tree3885f926632194e535466271c17c2d7d4c47673b /templates
parentf2b3bcc4a13c10b7f63e85aedcef2e4dae9dac78 (diff)
Add a package group overview page
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/groups.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/packages/groups.html b/templates/packages/groups.html
new file mode 100644
index 00000000..4bf12ac6
--- /dev/null
+++ b/templates/packages/groups.html
@@ -0,0 +1,35 @@
+{% extends "base.html" %}
+{% block title %}Arch Linux - Package Groups{% endblock %}
+{% block navbarclass %}anb-packages{% endblock %}
+
+{% block content %}
+<div class="box">
+ <h2>Package Groups Overview</h2>
+ <table class="results">
+ <thead>
+ <tr>
+ <th>Arch</th>
+ <th>Group Name</th>
+ <th>Package Count</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for grp in groups %}
+ <tr class="{% cycle 'odd' 'even' %}">
+ <td>{{ grp.arch }}</td>
+ <td><a href="/groups/{{ grp.arch }}/{{ grp.name }}/"
+ title="Group details for {{ grp.name }}">{{ grp.name }}</a></td>
+ <td>{{ grp.count }} Packages</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: [[1,0], [0,0]]});
+});
+</script>
+{% endblock %}