summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-23 12:44:12 -0500
committerDan McGee <dan@archlinux.org>2011-03-23 12:44:15 -0500
commitf46e5b1a94c845ea2125b4f9d6777dff56c9ad29 (patch)
tree7248080d5f74fe38754ad4d2fbbb377cad811fa3
parenteb6aaf6759ac6626c06612dbde9b160927501f3b (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>
-rw-r--r--packages/views.py5
-rw-r--r--templates/packages/packages_list.html (renamed from templates/packages/group_details.html)4
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/views.py b/packages/views.py
index d393e694..374a1a20 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -111,11 +111,12 @@ def group_details(request, arch, name):
if len(pkgs) == 0:
raise Http404
context = {
- 'groupname': name,
+ 'list_title': 'Group Details',
+ 'name': name,
'arch': arch,
'packages': pkgs,
}
- return direct_to_template(request, 'packages/group_details.html', context)
+ return direct_to_template(request, 'packages/packages_list.html', context)
def getmaintainer(request, name, repo, arch):
"Returns the maintainers as plaintext."
diff --git a/templates/packages/group_details.html b/templates/packages/packages_list.html
index 22b805d4..c897aac5 100644
--- a/templates/packages/group_details.html
+++ b/templates/packages/packages_list.html
@@ -1,10 +1,10 @@
{% extends "base.html" %}
-{% block title %}Arch Linux - {{ groupname }} - {{ arch.name }} - Group Details{% endblock %}
+{% block title %}Arch Linux - {{ name }} ({{ arch.name }}) - {{ list_title }}{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
{% block content %}
<div class="box">
- <h2>Details for group {{ groupname }} - {{ arch.name }}</h2>
+ <h2>{{ list_title }} - {{ name }} ({{ arch.name }})</h2>
<table class="results">
<thead>
<tr>