Extend images html in "image details" template

Otherwise, "image details" page lose the images tree and buttons.
multi-ogserver
Javier Sánchez Parra 2022-03-03 12:34:52 +01:00
parent b0fb32d767
commit 16ef1ae7ac
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{% extends 'base.html' %}
{% extends 'images.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% block content %}

View File

@ -1015,7 +1015,10 @@ def action_image_info():
form.permissions.data = image['permissions']
form.software_id.data = image['software_id']
return render_template('actions/image_details.html', form=form)
images = g.server.get('/images').json()['images']
return render_template('actions/image_details.html', form=form,
images=images)
@app.route('/action/image/delete', methods=['GET', 'POST'])
@login_required