From 9107316e0e44e9b06ccdadcea09cc6781ac8dfc6 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 27 Jun 2024 13:48:11 +0200 Subject: 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. --- ogcp/templates/actions/cache.html | 11 ++++++----- 1 file 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') }} -{% else %} -
- {{ _('Cache is currently empty in the selected client(s)') }} -
-{% endif %}
@@ -195,4 +190,10 @@ }); +{% else %} +
+ {{ _('Cache is currently empty in the selected client(s)') }} +
+{% endif %} + {% endblock %} -- cgit v1.2.3-18-g5258