From 08967c9a904b6380c6f794eb934038a3cfa65839 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Sep 2013 23:31:21 +0200 Subject: Add history navigation for operations, context records and finds (refs #1401) --- .../templates/ishtar/sheet_operation.html | 15 +++++++++++++++ archaeological_operations/urls.py | 2 ++ 2 files changed, 17 insertions(+) (limited to 'archaeological_operations') diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index fd4c4d021..06c30b9e7 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -1,7 +1,22 @@ {% extends "ishtar/sheet.html" %} {% load i18n %} {% block content %} + +{% if previous or next %} +
+{%if previous%} +{%trans "Previous version"%} ({{previous}}) +{% endif %} +{% if previous and next %} - {% endif %} +{%if next%} +Rollback - +{%trans "Next version"%} ({{next}}) +{% endif %} +
+{% endif %} +
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
+

{% trans "General"%}

{% if item.common_name %}

{{ item.common_name }}

{% endif %}

{{ item.year }}

diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py index 0da649d2d..13a2c5c35 100644 --- a/archaeological_operations/urls.py +++ b/archaeological_operations/urls.py @@ -67,6 +67,8 @@ urlpatterns += patterns('archaeological_operations.views', 'revert_operation', name='revert-operation'), url(r'show-operation/(?P.+)?/(?P.+)?$', 'show_operation', name='show-operation'), + url(r'show-historized-operation/(?P.+)?/(?P.+)?$', + 'show_operation', name='show-historized-operation'), url(r'get-administrativeactop/(?P.+)?$', 'get_administrativeactop', name='get-administrativeactop'), url(r'get-operationsource/(?P.+)?$', -- cgit v1.2.3