summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index 2dd58d49c..dd0579271 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -79,6 +79,15 @@
{% trans "Context record relations" as cr_rels %}
{% if item.right_relations.count %}
{% dynamic_table_document cr_rels 'context_records_relations' 'left_record_id' item.pk '' output %}
+
+{% 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 %}