diff options
| 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 |
| commit | 32b4271ea9e7540a7613429563fffde20e57690d (patch) | |
| tree | b99b9d116e9c0a64b18fbf3c24d32ed58db6238d /archaeological_warehouse/templates/ishtar/sheet_warehouse.html | |
| parent | 43e629c861fe5f73d4a0db94c9c49ac9592228c8 (diff) | |
| download | Ishtar-32b4271ea9e7540a7613429563fffde20e57690d.tar.bz2 Ishtar-32b4271ea9e7540a7613429563fffde20e57690d.zip | |
🐛 more robust filters for sheets (refs #6109)
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
| -rw-r--r-- | archaeological_warehouse/templates/ishtar/sheet_warehouse.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html index 377f3a5d3..68e0c0174 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html +++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html @@ -8,7 +8,7 @@ {% block content %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} -{% with has_documents=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 permission_change_own_geovectordata=permission_change_own_geovectordata %} @@ -138,7 +138,7 @@ <div class="tab-pane fade" id="{{window_id}}-content" role="tabpanel" aria-labelledby="{{window_id}}-content-tab"> - {% if item.containers.count %} + {% if item.containers.count and not item.containers_not_available %} <h4>{% trans "Divisions" %}</h4> {% dynamic_table_document '' 'divisions' 'location_id' item.pk 'TABLE_COLS' output %} <h4>{% trans "Containers" %}</h4> |
