diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-18 23:31:21 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-18 23:31:21 +0200 |
commit | cbbfef7f1ac2b4252c2818d707bbfa21bc855433 (patch) | |
tree | da01a65898d1ddc8601d7dc4e04cc5b2f384c38a /archaeological_context_records/templates | |
parent | 893fcca9d1938c5a6063062d9bd363e71e6b3b4e (diff) | |
download | Ishtar-cbbfef7f1ac2b4252c2818d707bbfa21bc855433.tar.bz2 Ishtar-cbbfef7f1ac2b4252c2818d707bbfa21bc855433.zip |
Add history navigation for operations, context records and finds (refs #1401)
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 355e76abc..8356d789d 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -1,6 +1,18 @@ {% extends "ishtar/sheet.html" %} {% load i18n %} {% block content %} +{% if previous or next %} +<div class='tool'> +{%if previous%} +<a href="#" onclick='load_window("{% url show-historized-contextrecord item.pk previous|date:"c"%}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a> +{% endif %} +{% if previous and next %} - {% endif %} +{%if next%} +<a href="#" onclick='if(confirm("{%trans "Are you sure to rollback to this version?"%}")){load_url("{% url revert-contextrecord item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show-contextrecord item.pk None %}");}'>Rollback</a> - +<a href="#" onclick='load_window("{% url show-historized-contextrecord item.pk next|date:"c" %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a> +{% endif %} +</div> +{% endif %} <div class='tool'>{%trans "Export as:"%} <a href='{% url show-contextrecord item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-contextrecord item.pk "pdf" %}'>{%trans "PDF file"%}</a></div> <h3>{% trans "Context Record"%}</h3> |