Updated data presentation of image attributes and some minor css tweaks.
This commit is contained in:
3
index.py
3
index.py
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user