diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-04-10 12:28:42 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-04-10 12:28:42 +0200 |
| commit | 210c91c1cb05f74c574f4fd28e23e5f1622afaa2 (patch) | |
| tree | 47d90976b77a7e937837e6cd90c701959e259645 /ishtar/templates | |
| parent | 412e1567c453509ca980ea1350f20e89db612f7a (diff) | |
| download | Ishtar-210c91c1cb05f74c574f4fd28e23e5f1622afaa2.tar.bz2 Ishtar-210c91c1cb05f74c574f4fd28e23e5f1622afaa2.zip | |
Better history management: don't save identical version of the history (refs #349)
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/sheet_file.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar/templates/sheet_file.html b/ishtar/templates/sheet_file.html index b161a8e22..bf74490d5 100644 --- a/ishtar/templates/sheet_file.html +++ b/ishtar/templates/sheet_file.html @@ -6,8 +6,9 @@ {%if previous%} <a href="#" onclick='load_window("{% url show-historized-file item.pk previous %}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a> {% endif %} +{% if previous and next %} - {% endif %} {%if next%} - - <a href="#" onclick='load_window("{% url show-historized-file item.pk next %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a> +<a href="#" onclick='load_window("{% url show-historized-file item.pk next %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a> {% endif %} </div> {% endif %} @@ -18,7 +19,7 @@ <p><label>{%trans "File's name:"%}</label> <span class='value'>{{ item.internal_reference }}</span></p> -<p><label>{%trans "Edition date:"%}</label> <span class='value'>{{ item.history.all.0.history_date }}</span></p> <!-- date = now --> +<p><label>{%trans "Edition date:"%}</label> <span class='value'>{{ item.history_date }}</span></p> <!-- date = now --> {% if item.reception_date %}<p><label>{%trans "Reception date:"%}</label> <span class='value'>{{ item.reception_date }}</span></p>{% endif %} <p><label>{%trans "Creation date:"%}</label> <span class='value'>{{ item.creation_date }}</span></p> {% comment %} |
