diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-13 17:41:36 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-13 17:41:36 +0100 |
commit | 5abe0727bfa9a4fab24afcccb66da7d8832bf6b9 (patch) | |
tree | 1b2f2bcce81e1b0b755698c4efdff29b9bd3075e /templates/packages/details.html | |
parent | 9730be60a8ef4a04358b0a026ce6b706de21d4e8 (diff) | |
download | archweb-5abe0727bfa9a4fab24afcccb66da7d8832bf6b9.tar.gz archweb-5abe0727bfa9a4fab24afcccb66da7d8832bf6b9.tar.xz |
Show epoch in package version if != 0
Add a full_version property method to our package object that does the
version formatting, and switch all templates displaying package versions
over to this new method.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r-- | templates/packages/details.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index f73e9d7..051726b 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% load cache %} -{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }} - Package Details{% endblock %} +{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.full_version }} - Package Details{% endblock %} {% block navbarclass %}anb-packages{% endblock %} {% load package_extras %} {% block content %} <div id="pkgdetails" class="box"> - <h2>Package Details: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2> + <h2>Package Details: {{ pkg.pkgname }} {{ pkg.full_version }}</h2> <div id="detailslinks" class="listing"> @@ -23,7 +23,7 @@ {% with pkg.in_testing as tp %}{% if tp %} <li><span class="flagged">Version <a href="{{ tp.get_absolute_url }}" - title="Testing package details for {{ tp.pkgname }}">{{ tp.pkgver }}-{{ tp.pkgrel }}</a> + title="Testing package details for {{ tp.pkgname }}">{{ tp.full_version }}</a> in testing</span></li> {% endif %}{% endwith %} {% if perms.main.change_package %} @@ -58,7 +58,7 @@ <ul> {% for o in others %} <li><a href="{{ o.get_absolute_url }}" - title="Package details for {{ o.pkgname }}">{{ o.pkgname }} {{ o.pkgver }}-{{ o.pkgrel }} [{{ o.repo.name|lower }}] ({{ o.arch.name }})</a></li> + title="Package details for {{ o.pkgname }}">{{ o.pkgname }} {{ o.full_version }} [{{ o.repo.name|lower }}] ({{ o.arch.name }})</a></li> {% endfor %} </ul> </div> |