diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-30 16:05:03 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:43:58 +0200 |
commit | c6b94c38f8afe9a73ccb40b6af8ea9f8fa3f4ce8 (patch) | |
tree | b525a13228892ceef1fd12e5e52aa89c786d4c64 /archaeological_operations | |
parent | 16fa62f8fd560d09eb339df372416653d6eb916d (diff) | |
download | Ishtar-c6b94c38f8afe9a73ccb40b6af8ea9f8fa3f4ce8.tar.bz2 Ishtar-c6b94c38f8afe9a73ccb40b6af8ea9f8fa3f4ce8.zip |
Display relation images on the sheet.
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 8530d0579..7999dc21d 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -165,6 +165,15 @@ {% if forloop.last %} </div>{% endif %} {% endfor %} + +{% if item.relation_image %} +<div id="lightgallery-{{window_id}}-relation-image"> + {% if output != "ODT" %}<a href="{{item.relation_image.url}}">{% endif %} + <img src="{{item.relation_image.url}}" class="img-fluid img-thumbnail"> + {% if output != "ODT" %}</a>{% endif %} +</div> +<hr> +{% endif %} {% endif %} {% if item.archaeological_sites.count %} |