From b0858a7a62845eb7beda0df369a0d6d7145e9d5f Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 6 Jun 2024 11:26:37 +0200 Subject: templates: show image file table only if clients have a cache Hide form table when the client's cache is empty and inform the user about the selected clients not having images in cache. --- ogcp/templates/actions/cache.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/cache.html b/ogcp/templates/actions/cache.html index 07f5b16..e6db31f 100644 --- a/ogcp/templates/actions/cache.html +++ b/ogcp/templates/actions/cache.html @@ -20,6 +20,7 @@

{{ _('Select the images to be deleted:') }}

+{% if form.images|length > 1 %}
@@ -48,6 +49,11 @@ {{ _('Delete') }} +{% else %} +
+ {{ _('Cache is currently empty in the selected client(s)') }} +
+{% endif %}
-- cgit v1.2.3-18-g5258