diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-06 11:26:37 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-07 14:35:41 +0200 |
commit | b0858a7a62845eb7beda0df369a0d6d7145e9d5f (patch) | |
tree | 791835e357e91a7bebea75b41278fe99065e49cc | |
parent | 1ae3c1a8405b96bc02a8d816dba07beb77fffc52 (diff) |
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.
-rw-r--r-- | ogcp/templates/actions/cache.html | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ <p>{{ _('Select the images to be deleted:') }}</p> +{% if form.images|length > 1 %} <form class="form-inline" method="POST" id="cacheForm"> <table class="table table-hover"> <thead class="thead-light"> @@ -48,6 +49,11 @@ {{ _('Delete') }} </button> </form> +{% else %} +<div class="card text-center"> + <b>{{ _('Cache is currently empty in the selected client(s)') }}</b> +</div> +{% endif %} <br> |