summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 20:52:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 20:52:21 +0200
commitb26899f297daae8fd38a34d9f27795a36850bdd5 (patch)
tree1f381a194af3a3ba176781f2d635389be421b25f /archaeological_warehouse/templates
parent04c5b93e8e4aad4bfb07ffbc1493d2d1c33a518f (diff)
downloadIshtar-b26899f297daae8fd38a34d9f27795a36850bdd5.tar.bz2
Ishtar-b26899f297daae8fd38a34d9f27795a36850bdd5.zip
Do not display DataTable error on prod
Diffstat (limited to 'archaeological_warehouse/templates')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
index ae032a8a4..eed484d5a 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
@@ -62,6 +62,7 @@
{% if item.number_of_finds_by_place %}
<h4>{% trans "Finds by location in the warehouse" %}</h4>
{% for items in item.number_of_finds_by_place %}
+{% if items %}
<table class='table table-striped datatables'
id="{{window_id}}-find-by-loca-{{forloop.counter}}">
<thead>
@@ -79,6 +80,7 @@
{% endfor %}
</tbody>
</table>
+{% endif %}
{% endfor %}
{% endif %}
@@ -91,6 +93,7 @@
{% if item.number_of_containers_by_place %}
<h4>{% trans "Containers by location in the warehouse" %}</h4>
{% for items in item.number_of_containers_by_place %}
+{% if items %}
<table class='table table-striped datatables'
id="{{window_id}}-container-by-loca-{{forloop.counter}}">
<thead>
@@ -108,6 +111,7 @@
{% endfor %}
</tbody>
</table>
+{% endif %}
{% endfor %}
{% endif %}