From 6a134b63372311706f174516a45ad2af8c7ff225 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Fri, 2 Feb 2024 12:30:47 +0100 Subject: Make list_images show only selected images Make list images command show only information of the images the user has selected in the sidebar. Improve readability of the information. Show size and data size attributes rounded Warn the user if no images have been selected in sidebar --- ogcp/templates/actions/list_images.html | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'ogcp/templates/actions/list_images.html') diff --git a/ogcp/templates/actions/list_images.html b/ogcp/templates/actions/list_images.html index e2f5633..694036f 100644 --- a/ogcp/templates/actions/list_images.html +++ b/ogcp/templates/actions/list_images.html @@ -6,15 +6,11 @@ {% block content %}

{{_('List images')}}

-{% for r in responses %} - {% set server = r['server']['name']%} - {% set repos = r['repos'] %} - {% for repo in repos.values() %} - {% set repo_name = repo['name'] %} - {% set images = repo['images'] %} - {% if images %} - {{ repo_name }} ({{ server }}) - +{% for server in servers %} +

Server: {{server['name']}}

+ {% for repo, images in server['repos'] %} +

Repo: {{repo}}

+
@@ -27,14 +23,13 @@ {% for img in images %} - - + + {% endfor %}
Name
{{img['name']}}{{img['size'] / 1024 ** 2}}{{img['datasize'] / 1024 ** 2}}{{(img['size'] / 1024 ** 2) |round(2, 'floor')}}{{(img['datasize'] / 1024 ** 2) |round(2, 'floor')}} {{img['modified']}}
- {% endif %} {% endfor %} {% endfor %} -- cgit v1.2.3-18-g5258