From 94be52f1bb320206524d2f0f4ad79968ca437727 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 8 Mar 2012 00:25:32 -0600 Subject: Only show package groups if they exist Signed-off-by: Dan McGee --- templates/packages/details.html | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/packages/details.html b/templates/packages/details.html index 2482d1aa..e0dd7034 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -108,26 +108,23 @@

Versions Elsewhere

License(s): {{ pkg.licenses.all|join:", " }} - + + {% with pkg.groups.all as groups %}{% if groups %} + Groups: - {% with pkg.groups.all as groups %} - {% if groups %} - {% for g in groups %} + {% for g in groups %} {{ g.name }}
{% endfor %} - {% else %}None{% endif %} - {% endwith %} - {% with pkg.provides.all as provides %} - {% if provides %} + {% endif %}{% endwith %} + {% with pkg.provides.all as provides %}{% if provides %} Provides: {% for p in provides %}{{ p.name }}{% if p.version %}={{ p.version }}{% endif %}
{% endfor %} - {% endif %} - {% endwith %} + {% endif %}{% endwith %} Maintainers: {% with pkg.maintainers as maints %} -- cgit v1.2.3-54-g00ecf