mirror of https://git.48k.eu/ogcp
Add ogLive list to the dashboard
Add list with ogLives installed in the server and highlight the default ogLive.multi-ogserver
parent
8441d844d1
commit
5e46157060
|
@ -66,5 +66,20 @@
|
|||
</ul>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="m-4 w-25 card text-center">
|
||||
<div class="card-header">
|
||||
ogLives
|
||||
</div>
|
||||
<ul class="list-group">
|
||||
{% for oglive in oglive_list['oglive'] %}
|
||||
<li class="list-group-item">
|
||||
{{ oglive['directory'] }}
|
||||
{% if loop.index0 == oglive_list['default'] %}
|
||||
(default)
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue