From c8cf49bf6caaaf632b6ea7a9687270ac46a5ea56 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 17 Mar 2022 08:20:03 +0100 Subject: Summarize dashboard information * Rename "ogLives" to "ogLive images". * Move "Number of images" table to take less space. * Show storage data as "Storage size | Used (%) | Available (%)". * Move "Latest images" an "ogLive images" to the bottom. --- ogcp/templates/dashboard.html | 102 +++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 52 deletions(-) (limited to 'ogcp/templates') diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 9e644a2..5187b15 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -29,25 +29,14 @@

{{ clients['clients'] | length }}

- - - -
-
-
- {{ _('Latest images') }} -
- {% for image in images[:10] %} -
    -
  • - {{ image['name'] }} -
  • -
  • - {{ image['modified'] }} -
  • -
- {% endfor %} -
+
@@ -63,13 +52,10 @@ {{ _('Disk size') }}
  • - {{ _('used') }} -
  • -
  • - {{ _('available') }} + {{ _('used') }} (%)
  • - {{ _('use') }}(%) + {{ _('available') }} (%)
  • -
    - {{ _('Number of images') }} -
    -
    -

    {{ images | length }}

    -
    - - - - -
    -
    -
    - ogLives -
    -
      - {% for oglive in oglive_list['oglive'] %} -
    • - {{ oglive['directory'] }} - {% if loop.index0 == oglive_list['default'] %} - ({{ _('default') }}) - {% endif %} -
    • - {% endfor %} -
    @@ -186,6 +146,44 @@ + + +
    +
    +
    + {{ _('Latest images') }} +
    + {% for image in images[:10] %} +
      +
    • + {{ image['name'] }} +
    • +
    • + {{ image['modified'] }} +
    • +
    + {% endfor %} +
    +
    + + +
    +
    +
    + {{ _('ogLive images') }} +
    +
      + {% for oglive in oglive_list['oglive'] %} +
    • + {{ oglive['directory'] }} + {% if loop.index0 == oglive_list['default'] %} + ({{ _('default') }}) + {% endif %} +
    • + {% endfor %} +
    +
    +
    {% endblock %} -- cgit v1.2.3-18-g5258