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 | d0e31acb2cfb5c7300d3f8b833219b756577d73b (patch) | |
| tree | 47d90976b77a7e937837e6cd90c701959e259645 /ishtar/templates | |
| parent | d9425a6b4ee791ad6f35457209800edfd4311da8 (diff) | |
| download | Ishtar-d0e31acb2cfb5c7300d3f8b833219b756577d73b.tar.bz2 Ishtar-d0e31acb2cfb5c7300d3f8b833219b756577d73b.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 %} |
