summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_museum_find.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-05 15:42:57 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-05 15:42:57 +0100
commit297dcee5f4c5e3cce1d8ff52bfdce6d48c05c38b (patch)
treeb0a5a44ad8efb0fd36c8b8dde5d0048bee0cf0af /archaeological_finds/templates/ishtar/sheet_museum_find.html
parentcc11f3c1d7fe0408198d14351961fc6316c105b4 (diff)
downloadIshtar-297dcee5f4c5e3cce1d8ff52bfdce6d48c05c38b.tar.bz2
Ishtar-297dcee5f4c5e3cce1d8ff52bfdce6d48c05c38b.zip
✨ sheet find: put archaeological context on second tab
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_museum_find.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_museum_find.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_museum_find.html b/archaeological_finds/templates/ishtar/sheet_museum_find.html
index 291156e7c..0785c1dfb 100644
--- a/archaeological_finds/templates/ishtar/sheet_museum_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_museum_find.html
@@ -29,7 +29,8 @@
{% with can_view_container=permission_view_own_container|or_:permission_view_container %}
{% with display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:non_modif_treatments_count|or_:associated_treatment_files_count %}
{% with can_view_documents=permission_view_own_document|or_:permission_view_document %}
-{% with display_documents=can_view_documents|and_:item.documents_count %}
+{% with has_documents=item|safe_or:"documents.count|documents_list"|safe_and_not:"documents_not_available" %}
+{% with display_documents=can_view_documents|and_:has_documents %}
{% with has_image=item.images_number %}
{% if output != "ODT" and output != "PDF"%}