diff options
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
-rw-r--r-- | archaeological_warehouse/templates/ishtar/sheet_warehouse.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html index d82b0ee6c..76a419e78 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html +++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html @@ -171,6 +171,12 @@ role="tabpanel" aria-labelledby="{{window_id}}-stats-tab"> <h3>{% trans "Statistics" %}</h3> + {% if item.number_containers > 1000 or item.number_divisions > 200 %} + <div class="alert alert-info"> + <i class="fa fa-exclamation-triangle"></i> + <em>{% trans "Statistics disabled when too many containers are attached to a warehouse. In a future version, statistics will be optimized." %}</em> + </div> + {% else %} <div class="row mt-2 mb-2"> <div class="col"> <div class="btn-group btn-group-sm" role="group" @@ -247,6 +253,7 @@ {% endfor %} {% endif %} + {% endif %} </div> {% if display_documents %} <div class="tab-pane fade" id="{{window_id}}-documents" |