summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates/ishtar/sheet_site.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-06 15:24:37 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:57 +0100
commit32b4271ea9e7540a7613429563fffde20e57690d (patch)
treeb99b9d116e9c0a64b18fbf3c24d32ed58db6238d /archaeological_operations/templates/ishtar/sheet_site.html
parent43e629c861fe5f73d4a0db94c9c49ac9592228c8 (diff)
downloadIshtar-32b4271ea9e7540a7613429563fffde20e57690d.tar.bz2
Ishtar-32b4271ea9e7540a7613429563fffde20e57690d.zip
🐛 more robust filters for sheets (refs #6109)
Diffstat (limited to 'archaeological_operations/templates/ishtar/sheet_site.html')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_site.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html
index c3154fdf5..f1c5b6ec8 100644
--- a/archaeological_operations/templates/ishtar/sheet_site.html
+++ b/archaeological_operations/templates/ishtar/sheet_site.html
@@ -96,18 +96,18 @@
{% include "ishtar/blocks/sheet_json.html" %}
{% trans "Operations" as operations %}
-{% if item.operations.count %}
+{% if item.operations.count and not item.operations_not_available %}
{% dynamic_table_document operations 'operations' 'archaeological_sites' item.pk '' output %}
{% endif %}
-{% if item.finds.count %}
+{% if item.finds.count and not item.finds_not_available %}
{% trans "Finds" as finds %}
{% dynamic_table_document finds 'finds' 'base_finds__context_record__archaeological_site' item.pk '' output %}
{% endif %}
{% trans "Documents" as docs %}
{% if permission_view_own_document or permission_view_document %}
-{% if item.documents.count %}
+{% if item.documents.count and not item.documents_not_available %}
{% dynamic_table_document docs 'documents' 'sites' item.pk '' output %}
{% endif %}
{% endif %}