summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-03-29 14:49:27 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-20 18:44:23 +0200
commit7f0d1ab287285e3903ff5507d68565aa393de3a0 (patch)
treed2429343e7c4faf57eecd8656e30d48a567d00d5 /ogcp/templates
parent411189e6ecb41b209b48993090bc5b8c8a14aa3b (diff)
Add latest images to the dashboard
Users want to know latest created/modified images to manage new images or changes made on existing images. This commit adds a list with the 10 latest created or modified images.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/dashboard.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index 9c34768..518ae20 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -18,5 +18,20 @@
<p class="card-text">{{ images | length }}</p>
</div>
</div>
+ <div class="m-4 w-25 card text-center">
+ <div class="card-header">
+ Latest images
+ </div>
+ {% for image in images[:10] %}
+ <ul class="list-group list-group-horizontal">
+ <li class="list-group-item w-50">
+ {{ image['name'] }}
+ </li>
+ <li class="list-group-item w-50">
+ {{ image['modified'] }}
+ </li>
+ </ul>
+ {% endfor %}
+ </div>
</div>
{% endblock %}