From 54b5e8e3d44cc974f768c2c8786f66c13059b128 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 20 Sep 2017 14:18:47 +0200 Subject: [PATCH] Video: Fix Download button --- src/templates/nodes/custom/_node_details.pug | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/templates/nodes/custom/_node_details.pug b/src/templates/nodes/custom/_node_details.pug index 7eb2560d..a1628382 100644 --- a/src/templates/nodes/custom/_node_details.pug +++ b/src/templates/nodes/custom/_node_details.pug @@ -36,7 +36,7 @@ span Public | {% endif %} - | {% if node.file and node.file.link %} + | {% if node.file and current_user.has_cap('subscriber') %} li.download | {% if node.properties.content_type == 'video' %} | {% if node.file_variations %} @@ -73,6 +73,13 @@ | Download | {% endif %} + | {% elif current_user.is_authenticated %} + li.download + a.btn( + title="Join Blender Cloud", + href="{{ url_for('cloud.join') }}") + i.pi-lock + | Download | {% else %} li.download a.btn( @@ -80,7 +87,6 @@ href="{{ url_for('users.login') }}") i.pi-lock | Download - | {% endif %} | {% if node.properties.license_type %}