damned-lies r1261 - in trunk: . templates/vertimus
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1261 - in trunk: . templates/vertimus
- Date: Tue, 30 Dec 2008 08:38:52 +0000 (UTC)
Author: claudep
Date: Tue Dec 30 08:38:52 2008
New Revision: 1261
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1261&view=rev
Log:
2008-12-30 Claude Paroz <claude 2xlibre net>
* templates/vertimus/vertimus_detail.html: When a branch is not in any
release, display a link to the module instead to the release.
Modified:
trunk/ChangeLog
trunk/templates/vertimus/vertimus_detail.html
Modified: trunk/templates/vertimus/vertimus_detail.html
==============================================================================
--- trunk/templates/vertimus/vertimus_detail.html (original)
+++ trunk/templates/vertimus/vertimus_detail.html Tue Dec 30 08:38:52 2008
@@ -7,8 +7,15 @@
{% block content %}
<div class="mainpage">
-{% with branch.releases.all.0 as release %}
-<p align="right"><small><a href="{% url languages.views.language_release language.locale, release.name, domain.dtype %}">{% trans release.description %} - {{ language.get_name }}</a></small></p>
+{% with branch.releases.all.0 as release %}
+<p align="right"><small>
+{% if release %}
+ <a href="{% url languages.views.language_release language.locale, release.name, domain.dtype %}">{% trans release.description %} - {{ language.get_name }}</a>
+{% else %}
+ <a href="{% url stats.views.module module.name %}">{{ module.get_description }}</a>
+{% endif %}
+</small></p>
+
{% endwith %}
<h1>{{ module.get_description }} - {{ branch.name }} - {% trans domain.description %} - {% trans language %}</h1>
@@ -55,7 +62,7 @@
</tr>
</table>
-{% if stats.fig_count %}
+{% if stats.fig_count and stats.language %}
<p><a href="{% url stats.views.docimages module_name=module.name,potbase=stats.domain.name,branch_name=branch.name,langcode=stats.language.locale %}">
<img src="{{ MEDIA_URL }}img/figure.png" alt="{% trans "Display document figures" %}"></a>
</p>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]