diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index 38dbafd..257cfe3 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -4,6 +4,7 @@
{% block content %}
+
Last update: {{ now }}
@@ -82,48 +83,6 @@
-
-
- -
- {{ _('Date') }}
-
- -
-
{{ time_dict['now'] }}
-
-
-
- -
- {{ _('Uptime') }}
-
- -
-
{{ time_dict['boot'] }}
-
-
-
- -
- {{ _('ogServer uptime') }}
-
- -
-
{{ time_dict['start'] }}
-
-
-
-
- -
- {{ _('Number of images') }}
-
- -
-
{{ images | length }}
-
-
-
@@ -263,14 +222,20 @@
{{ _('ogLive images') }}
- {% for oglive in oglive_list['oglive'] %}
- -
- {{ oglive['directory'] }}
- {% if loop.index0 == oglive_list['default'] %}
- ({{ _('default') }})
- {% endif %}
-
- {% endfor %}
+ {% if oglive_list %}
+ {% for oglive in oglive_list['oglive'] %}
+ -
+ {{ oglive['directory'] }}
+ {% if loop.index0 == oglive_list['default'] %}
+ ({{ _('default') }})
+ {% endif %}
+
+ {% endfor %}
+ {% else %}
+ -
+ No ogLive images available
+
+ {% endif %}
diff --git a/ogcp/views.py b/ogcp/views.py
index ba9f1a3..db56169 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -380,7 +380,8 @@ def index():
server_id = i['server'].id
dashboard_servers[server_id]['clients'] = i['json']['clients']
- return render_template('dashboard.html', servers=dashboard_servers, colsize="6")
+ now = timestamp.strftime('%Y-%m-%d %H:%M:%S')
+ return render_template('dashboard.html', servers=dashboard_servers, now=now, colsize="6")
@app.route('/login', methods=['GET', 'POST'])
def login():