summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-03 12:34:52 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-03 12:35:48 +0100
commit16ef1ae7ac93f8d0cc2b9ae0ac82bdf7d4e99343 (patch)
tree71046ec021f72cfb59dcdfa2332f903640c5d655 /ogcp
parentb0fb32d7673e2d892b4645cee8e16f7f157e26f6 (diff)
Extend images html in "image details" template
Otherwise, "image details" page lose the images tree and buttons.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/templates/actions/image_details.html2
-rw-r--r--ogcp/views.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/ogcp/templates/actions/image_details.html b/ogcp/templates/actions/image_details.html
index a4feb55..e54d3e8 100644
--- a/ogcp/templates/actions/image_details.html
+++ b/ogcp/templates/actions/image_details.html
@@ -1,4 +1,4 @@
-{% extends 'base.html' %}
+{% extends 'images.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% block content %}
diff --git a/ogcp/views.py b/ogcp/views.py
index ae67b1e..cb1f4de 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -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