Generic template for node preview when not subscribed

This commit is contained in:
Pablo Vazquez 2018-03-27 19:40:44 +02:00
parent 8f227076fd
commit ebfd3d542c

View File

@ -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 %}