2016-08-19 09:19:06 +02:00
| {% extends 'layout.html' %}
2017-05-04 18:15:35 +02:00
| {% block head %}
style(type='text/css').
button#recheck_subscription {
margin-top: 1em;
}
| {% endblock %}
2016-08-19 09:19:06 +02:00
| {% block body %}
.container
#settings
include _sidebar
#settings-container
.settings-header
.settings-title Subscription
.settings-content
| {% if store_user['cloud_access'] %}
h3.subscription-active
i.pi-check
| Your subscription is active
h4 Thank you for supporting us!
hr
p Subscription expires on: <strong>{{ store_user['expiration_date'][:10] }}</strong>
2017-05-04 18:15:35 +02:00
a(href="https://store.blender.org/my-account/subscriptions/") Manage your subscription on Blender Store
2016-08-19 09:19:06 +02:00
| {% else %}
| {% if 'demo' in groups %}
h3.subscription-demo
i.pi-heart-filled
| You have a free account
hr
p You have full access to the Blender Cloud, provided by the Blender Institute. This account is meant for free evaluation of the service. Get in touch with #[a(href="mailto:cloudsupport@blender.org") cloudsupport@blender.org] if you have any questions.
| {% else %}
h3.subscription-missing
i.pi-info
| You do not have an active subscription.
h3
a(href="https://store.blender.org/product/membership/") Get full access to Blender Cloud now!
| {% endif %}
| {% endif %}
2017-05-04 18:15:35 +02:00
p
button#recheck_subscription.btn.btn-default(onclick="javascript:recheck_subscription(this)") Re-check my subscription
hr
2016-08-19 09:19:06 +02:00
2017-05-04 18:15:35 +02:00
script.
function recheck_subscription(button) {
$(button).text('Checking');
2016-08-19 09:19:06 +02:00
2017-05-04 18:15:35 +02:00
$.get('/api/bcloud/update-subscription')
.done(function() {
window.location.reload();
})
2017-05-04 18:23:55 +02:00
.fail(function() {
2017-05-04 18:15:35 +02:00
alert('Unable to update subscription, please check your internet connection.');
})
;
}
2016-08-19 09:19:06 +02:00
| {% endblock %}