summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
Diffstat (limited to 'templates/packages')
-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 %}