diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-04-05 14:54:56 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-20 18:44:37 +0200 |
commit | 5e46157060463c86c42053ec20f789ed579eefce (patch) | |
tree | 3081bf12bdab80991e0fa2fd01fbce33bd19a128 /ogcp/views.py | |
parent | 8441d844d104900f987f874dbddb46aa2503ddda (diff) |
Add ogLive list to the dashboard
Add list with ogLives installed in the server and highlight the default
ogLive.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
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']) |