summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-27 13:48:11 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-28 08:43:22 +0200
commit9107316e0e44e9b06ccdadcea09cc6781ac8dfc6 (patch)
tree12b5da1c4ea2026912381098742ebb452d73f158
parenta8af19fa23ad312048c439681176415621864e03 (diff)
templates: hide detailed cache view with zero images
Hide the cache inspector when no cache elements are found in neither of the selected clients. Fix js exception caused by an array access in an empty image list.
-rw-r--r--ogcp/templates/actions/cache.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/ogcp/templates/actions/cache.html b/ogcp/templates/actions/cache.html
index 4e29f66..b91bd86 100644
--- a/ogcp/templates/actions/cache.html
+++ b/ogcp/templates/actions/cache.html
@@ -49,11 +49,6 @@
{{ _('Delete') }}
</button>
</form>
-{% else %}
-<div class="card text-center">
- <b>{{ _('Cache is currently empty in the selected client(s)') }}</b>
-</div>
-{% endif %}
<br>
@@ -195,4 +190,10 @@
});
</script>
+{% else %}
+<div class="card text-center">
+ <b>{{ _('Cache is currently empty in the selected client(s)') }}</b>
+</div>
+{% endif %}
+
{% endblock %}