Added "Copy yaw" button to HDRIs

The button is only shown to people with the right to edit the current
node. I've also simplified some CSS, with the help of @venomgfx.
This commit is contained in:
2017-03-28 18:11:00 +02:00
parent 9ccf4474bc
commit cecc9bc7fb
4 changed files with 41 additions and 21 deletions

View File

@@ -215,6 +215,8 @@ def view(node_id):
if request.args.get('format') == 'amp':
template_path = 'nodes/view_amp.html'
write_access = 'PUT' in (node.allowed_methods or set())
try:
return render_template(template_path,
node_id=node._id,
@@ -222,6 +224,7 @@ def view(node_id):
parent=node.parent,
children=children,
config=current_app.config,
write_access=write_access,
api=api)
except TemplateNotFound:
log.error('Template %s does not exist for node type %s', template_path, node_type_name)
@@ -231,6 +234,7 @@ def view(node_id):
parent=node.parent,
children=children,
config=current_app.config,
write_access=write_access,
api=api)