From 2dc0cafbb47fa67fde5ebe7876fb7566d660904a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 3 Sep 2010 00:51:00 -0500 Subject: Add links to 'Versions Elsewhere' on package details page This will allow clicking through to a few more associated packages from a given package, including those for the other architecture and potentially in other repositories. The box floats to the right with the package actions, which have also been restyled slightly so the whole area is a bit more styled and set off from the rest of the page. This should allow us to close the current oldest bug open in the Arch bug tracker, FS#7787. I remember the days when every bug was a four-digit number... Signed-off-by: Dan McGee --- templates/packages/details.html | 82 +++++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 32 deletions(-) (limited to 'templates/packages') diff --git a/templates/packages/details.html b/templates/packages/details.html index 4537772c..785bf626 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -8,40 +8,58 @@

Package Details: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

-
- - +
- {% if user.is_authenticated %} -
{% csrf_token %} -
-

-   

-
- {% endif %} + {% with pkg.elsewhere as others %}{% if others %} +
+

Versions Elsewhere

+ +
+ {% endif %}{% endwith %} @@ -62,7 +80,7 @@

Package Details: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

{% for s in splits %} {{ s.pkgname }}
+ title="Package details for {{ s.pkgname }}">{{ s.pkgname }}
{% endfor %} -- cgit v1.2.3-54-g00ecf