Changeset View
Changeset View
Standalone View
Standalone View
common/templates/common/components/content_locked.html
| {% load static %} | {% load static %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| <div class="content-locked"> | <div class="content-locked"> | ||||
| <img class="img-fluid" | <img class="img-fluid" | ||||
| src="{% if background %}{{ background }}{% else %}{% static 'training/images/placeholders/card.jpg' %}{% endif %}"> | src="{% if background %}{{ background }}{% else %}{% static 'training/images/placeholders/card.jpg' %}{% endif %}"> | ||||
| <div class="content-locked-text"> | <div class="content-locked-text"> | ||||
| {% if not request.user.is_authenticated %} | {% if not request.user.is_authenticated %} | ||||
| <h3>You need to login to view this content</h3> | <h3>You need to login to view this content</h3> | ||||
| <p class="mb-3">You can join Blender Cloud for €9.90/month and get access to all of our training & film content | <p class="mb-3">You can join Blender Cloud for €9.90/month and get access to all of our training & film content | ||||
| instantly!</p> | instantly!</p> | ||||
| <a href="{% url 'oauth:login' %}" class="btn btn-transparent btn-nav login-button">Login</a> | <a href="{% url 'oauth:login' %}" class="btn btn-transparent btn-nav login-button">Login</a> | ||||
| <a href="https://store.blender.org/product/membership/" target="_blank" class="btn btn-primary">Join Blender | <a {% include "subscriptions/components/join_url" %} class="btn btn-primary">Join Blender | ||||
| Cloud</a> | Cloud</a> | ||||
| {% else %} | {% else %} | ||||
| <h3>You need to subscribe to view this content</h3> | <h3>You need to subscribe to view this content</h3> | ||||
| <p class="mb-3">You can join Blender Cloud for €9.90/month and get access to all of our training & film content | <p class="mb-3">You can join Blender Cloud for €9.90/month and get access to all of our training & film content | ||||
| instantly!</p> | instantly!</p> | ||||
| <a href="https://store.blender.org/product/membership/" target="_blank" class="btn btn-primary">Join Blender | <a {% include "subscriptions/components/join_url" %} class="btn btn-primary">Join Blender | ||||
| Cloud</a> | Cloud</a> | ||||
| {% endif %} | {% endif %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||