summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/templates/dashboard.html8
-rw-r--r--ogcp/views.py3
2 files changed, 10 insertions, 1 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">
diff --git a/ogcp/views.py b/ogcp/views.py
index 01b7a0f..d8d76c5 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -242,7 +242,8 @@ def index():
timestamp = datetime.datetime.fromtimestamp(stats.get('time').get('now'))
now = timestamp.strftime('%Y-%m-%d %H:%M:%S')
boot = display_time(stats.get('time').get('boot'))
- time_dict = {'now': now, 'boot': boot}
+ start = display_time(stats.get('time').get('start'))
+ time_dict = {'now': now, 'boot': boot, 'start': start}
return render_template('dashboard.html', clients=clients,
images=images, disk=disk, colsize="6",
oglive_list=oglive_list, stats=stats,