From 5e46157060463c86c42053ec20f789ed579eefce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez=20Parra?= Date: Mon, 5 Apr 2021 14:54:56 +0200 Subject: [PATCH] Add ogLive list to the dashboard Add list with ogLives installed in the server and highlight the default ogLive. --- ogcp/templates/dashboard.html | 15 +++++++++++++++ ogcp/views.py | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 0f022c3..c2b10e8 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -66,5 +66,20 @@ {% endfor %} +
+
+ ogLives +
+ +
{% endblock %} diff --git a/ogcp/views.py b/ogcp/views.py index e9a40c8..c66ada8 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -125,8 +125,10 @@ def index(): images = images_response.json()['images'] images.sort(key=image_modified_date_from_str, reverse=True) disk = images_response.json()['disk'] + oglive_list = g.server.get('/oglive/list').json() return render_template('dashboard.html', clients=clients, - images=images, disk=disk) + images=images, disk=disk, + oglive_list=oglive_list) return render_template('base.html') @app.route('/login', methods=['GET', 'POST'])