summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/dashboard.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-28 08:37:53 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-28 08:37:53 +0200
commit1356145026a8673b192bcb632f272a4aa819b5d5 (patch)
treea2cedf4fa8a0d644d02441af4a39c43baca310ba /ogcp/templates/dashboard.html
parent6b617bd448bf0122f2183e60f0fb4537b13caece (diff)
Add ogServer uptime to the dashboard
ogServer GET /stats returns ogServer uptime in seconds. Transform seconds to days, hours and minutes and print them in the dashboard.
Diffstat (limited to 'ogcp/templates/dashboard.html')
-rw-r--r--ogcp/templates/dashboard.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index a84ae4d..e1d9dc4 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -23,6 +23,14 @@
</ul>
<ul class="list-group list-group-horizontal">
<li class="list-group-item w-50">
+ {{ _('ogServer uptime') }}
+ </li>
+ <li class="list-group-item w-50">
+ <p class="card-text">{{ time_dict['start'] }}</p>
+ </li>
+ </ul>
+ <ul class="list-group list-group-horizontal">
+ <li class="list-group-item w-50">
{{ _('Connected clients (ogClient)') }}
</li>
<li class="list-group-item w-50">