From 314a173b6cc3125190786e43158b7a60063f33bf Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 16 Jul 2024 11:41:41 +0200 Subject: ogcp: show cache contents in client details Show cache contents in client details for a more complete view of the client's state. Move the cache inspector code to its own template for reusability. --- ogcp/templates/actions/cache.html | 147 +---------------------------- ogcp/templates/actions/client_details.html | 4 + 2 files changed, 6 insertions(+), 145 deletions(-) (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/cache.html b/ogcp/templates/actions/cache.html index 46a8699..d64aebe 100644 --- a/ogcp/templates/actions/cache.html +++ b/ogcp/templates/actions/cache.html @@ -54,151 +54,8 @@ {{ _('Delete') }} - -
- -
-
- {{ _('Detailed cache usage') }} -
-
- - - -
    -
  • - -
  • -
  • -

    {{ _('Images in cache:') }}

    -
    -
  • -
-
    -
  • - {{ _('Disk size') }} -
  • -
  • - {{ _('used') }} (%) -
  • -
  • - {{ _('available') }} (%) -
  • -
-
    -
  • -
  • -
  • -
-
-
- - - - - - - -{% else %} -
- {{ _('Cache is currently empty in the selected client(s)') }} -
{% endif %} +{% include 'cache_inspector.html' %} + {% endblock %} diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index 0362d5b..070e4d6 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -9,6 +9,8 @@ {% block nav_client_add %}active{% endblock %} {% block content %} +{% set ip_list = [form.ip.data] %} +

{{_('Client details')}}

@@ -106,4 +108,6 @@ {% endif %} +{% include 'cache_inspector.html' %} + {% endblock %} -- cgit v1.2.3-18-g5258