summaryrefslogtreecommitdiff
path: root/archaeological_files/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-06-15 23:55:00 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-06-15 23:55:00 +0200
commit543b81fccff95e040cd77dee9804b2328369fc69 (patch)
tree96598eba7bb842e403a2a7d188f9010871e97b9b /archaeological_files/templates
parent0cb5ce196a875415c759f94b0dbd489209cadc8a (diff)
downloadIshtar-543b81fccff95e040cd77dee9804b2328369fc69.tar.bz2
Ishtar-543b81fccff95e040cd77dee9804b2328369fc69.zip
Fix creator field in database - fix edition date in sheets (refs #1590)
Diffstat (limited to 'archaeological_files/templates')
-rw-r--r--archaeological_files/templates/ishtar/sheet_file.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html
index ffbf0018f..cec748dfc 100644
--- a/archaeological_files/templates/ishtar/sheet_file.html
+++ b/archaeological_files/templates/ishtar/sheet_file.html
@@ -28,7 +28,7 @@
{% if item.name %}
<p><label>{%trans "Name:"%}</label> <span class='value'>{{ item.name }}</span></p>
{% endif %}
-<p><label>{%trans "Edition date:"%}</label> <span class='value'>{{ item.history_date }}</span></p> <!-- date = now -->
+<p><label>{%trans "Edition date:"%}</label> <span class='value'>{% if item.history_date %}{{ item.history_date }}{% else %}{{ item.history.all.0.history_date }}{% endif %}</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>
<p><label>{%trans "Created by:"%}</label> <span class='value'>{{ item.history_creator.ishtaruser.full_label }}</span></p>