summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-04-10 00:34:08 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-04-10 00:34:08 +0200
commitd9425a6b4ee791ad6f35457209800edfd4311da8 (patch)
tree800d34322bdecea118fbbb62db376b1d0bbf4e05 /ishtar/templates
parent3fcd45377c58b3427d134218b1976c764be3558f (diff)
downloadIshtar-d9425a6b4ee791ad6f35457209800edfd4311da8.tar.bz2
Ishtar-d9425a6b4ee791ad6f35457209800edfd4311da8.zip
Show history in sheets (refs #349)
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/sheet_file.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ishtar/templates/sheet_file.html b/ishtar/templates/sheet_file.html
index 8a004b0a5..b161a8e22 100644
--- a/ishtar/templates/sheet_file.html
+++ b/ishtar/templates/sheet_file.html
@@ -1,6 +1,16 @@
{% extends "sheet.html" %}
{% load i18n %}
{% block content %}
+{% if previous or next %}
+<div class='tool'>
+{%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 next%}
+ - <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 %}
<div class='tool'>{%trans "Export as:"%} <a href='{% url show-file item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-file item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
<h3>{% trans "General"%}</h3>
<p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.year }}</span></p>