summaryrefslogtreecommitdiff
path: root/templates/packages/search.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-13 11:41:36 -0500
committerDan McGee <dan@archlinux.org>2011-03-13 11:41:36 -0500
commit5abe0727bfa9a4fab24afcccb66da7d8832bf6b9 (patch)
tree1b2f2bcce81e1b0b755698c4efdff29b9bd3075e /templates/packages/search.html
parent9730be60a8ef4a04358b0a026ce6b706de21d4e8 (diff)
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/search.html')
-rw-r--r--templates/packages/search.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 5d0de1f4..8ea53b8e 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -99,9 +99,9 @@
<td><a href="{{ pkg.get_absolute_url }}"
title="Package details for {{ pkg.pkgname }}">{{ pkg.pkgname }}</a></td>
{% if pkg.flag_date %}
- <td><span class="flagged">{{ pkg.pkgver }}-{{ pkg.pkgrel }}</span></td>
+ <td><span class="flagged">{{ pkg.full_version }}</span></td>
{% else %}
- <td>{{ pkg.pkgver }}-{{ pkg.pkgrel }}</td>
+ <td>{{ pkg.full_version }}</td>
{% endif %}
<td class="wrap">{{ pkg.pkgdesc }}</td>
<td>{{ pkg.last_update|date }}</td>