diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-03-26 11:51:54 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-20 18:44:15 +0200 |
commit | 411189e6ecb41b209b48993090bc5b8c8a14aa3b (patch) | |
tree | 3ac837df46bec1639545aec87adef57f5ab3cbce /ogcp/templates | |
parent | 543b12aca8f9ab3801da9fafefbed4a04518eab4 (diff) |
Add number of images to the dashboard
Users want to easily know the number of images an ogServer has.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/dashboard.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index a9cea41..9c34768 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -1,12 +1,22 @@ {% extends 'base.html' %} {% block content %} -<div class="m-4 w-25 card text-center"> - <div class="card-header"> - Connected clients (ogClient) +<div class="row"> + <div class="m-4 w-25 card text-center"> + <div class="card-header"> + Connected clients (ogClient) + </div> + <div class="card-body"> + <p class="card-text">{{ clients['clients'] | length }}</p> + </div> </div> - <div class="card-body"> - <p class="card-text">{{ clients['clients'] | length }}</p> + <div class="m-4 w-25 card text-center"> + <div class="card-header"> + Number of images + </div> + <div class="card-body"> + <p class="card-text">{{ images | length }}</p> + </div> </div> </div> {% endblock %} |