From ebfd3d542c488539db0b62b45e4f89898aa1bfdd Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 27 Mar 2018 19:40:44 +0200 Subject: [PATCH] Generic template for node preview when not subscribed --- .../nodes/custom/_node_preview_forbidden.pug | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/templates/nodes/custom/_node_preview_forbidden.pug diff --git a/src/templates/nodes/custom/_node_preview_forbidden.pug b/src/templates/nodes/custom/_node_preview_forbidden.pug new file mode 100644 index 00000000..89989791 --- /dev/null +++ b/src/templates/nodes/custom/_node_preview_forbidden.pug @@ -0,0 +1,17 @@ +section.node-preview-forbidden + | {% if node.picture %} + img(src="{{ node.picture.thumbnail('t', api=api) }}") + | {% endif %} + div + div Available to Blender Cloud subscribers + div + small Support Blender and get awesome stuff! + hr + | {% if current_user.has_cap('can-renew-subscription') %} + a.btn(href="/renew") You have a subscription, it just needs to be renewed. Renew your subscription now! + | {% else %} + a.btn(href="{{ url_for('cloud.join') }}") Get a Subscription + | {% endif %} + | {% if current_user.is_anonymous %} + a(href="{{ url_for('users.login') }}") Already a subscriber? Log in + | {% endif %}