[Pkg-debile-commits] [debile-web] 16/16: Improve the display when we have several version. Thanks to Medhi Dogguy for the suggestion
Sylvestre Ledru
sylvestre at alioth.debian.org
Thu Aug 29 10:11:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch update-usuability
in repository debile-web.
commit c8d13bcb2443f6ec54f07b3d8923102a6c368574
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Thu Aug 29 11:47:40 2013 +0200
Improve the display when we have several version. Thanks to Medhi Dogguy for the suggestion
---
templates/source.html | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/templates/source.html b/templates/source.html
index 44047a2..ffa95c5 100644
--- a/templates/source.html
+++ b/templates/source.html
@@ -56,17 +56,14 @@
{% if multiple_versions %}
<div class='block'>
<h3>Versions</h3>
- <p>
- {% if latest_version == package.version %}
- This is the latest version of debile available for this package, but you can access previous versions:
- {% else %}
- This package has been processed for multiple versions, see others:
- {% endif %}
- </p>
<div class='package_versions_menu'>
{% for version, link in versions_info %}
<div class='package_versions_menu_element'>
- <a href='{{link}}'>{{version}}{% if loop.last %} (latest){% endif %}</a>
+ {% if version == package.version %}
+ {{version}}{% if loop.last %} (latest){% endif %}
+ {% else %}
+ <a href='{{link}}'>{{version}}{% if loop.last %} (latest){% endif %}</a>
+ {% endif %}
</div>
{% endfor %}
</div>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list