summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/dashboard.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index 518ae20..0f022c3 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -12,6 +12,39 @@
</div>
<div class="m-4 w-25 card text-center">
<div class="card-header">
+ Disk stats
+ </div>
+ <div class="card-body">
+ <ul class="list-group list-group-horizontal">
+ <li class="list-group-item w-50">
+ Disk size
+ </li>
+ <li class="list-group-item w-50">
+ used
+ </li>
+ <li class="list-group-item w-50">
+ available
+ </li>
+ <li class="list-group-item w-50">
+ use(%)
+ </li>
+ </ul>
+ <ul class="list-group list-group-horizontal">
+ <li class="list-group-item w-50">
+ {{ disk['total'] // 2**30 }} Gbytes
+ </li>
+ <li class="list-group-item w-50">
+ {{ (disk['total'] - disk['free']) // 2**30 }} Gbytes
+ </li>
+ <li class="list-group-item w-50">
+ {{ disk['free'] // 2**30 }} Gbytes
+ </li>
+ <li class="list-group-item w-50">
+ {{ (((disk['total'] - disk['free']) / disk['total']) * 100)|int }}%
+ </li>
+ </ul>
+ </div>
+ <div class="card-header">
Number of images
</div>
<div class="card-body">