Updated data presentation of image attributes and some minor css tweaks.

This commit is contained in:
Krzysztof Płaczek
2018-03-23 08:34:49 +01:00
parent a26863e74f
commit d07cfe8089
5 changed files with 12 additions and 11 deletions

View File

@@ -68,7 +68,8 @@ def images_all_action(client_name):
def image_action(client_name, image_id):
if client_name in clients:
image = clients[client_name].images.get(image_id)
return render_template('image.html', image=image, client_name=client_name)
return render_template('image.html', image=image, image_attributes=json.dumps(image.attrs, indent=4),
client_name=client_name)
else:
flash('Client name \'%s\' not found' % client_name)
return redirect(url_for('index'))