Profile page: Styling and layout

This commit is contained in:
2018-09-15 16:41:47 +02:00
parent df33a1803e
commit aaeecc1429
3 changed files with 26 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ style(type='text/css').
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
| {% if user_cls == 'demo' %} | {% if user_cls == 'demo' %}
h3.subscription-demo h4.text-info.py-3
i.pi-heart-filled i.pi-heart-filled
| You have a free account | You have a free account
hr hr
@@ -23,7 +23,7 @@ p.
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
| {% elif user_cls == 'outsider' %} | {% elif user_cls == 'outsider' %}
h3.subscription-missing h4.text-info.py-3
i.pi-info i.pi-info
| You do not have an active subscription. | You do not have an active subscription.
hr hr
@@ -33,23 +33,23 @@ h3
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
| {% elif user_cls == 'subscriber-expired' %} | {% elif user_cls == 'subscriber-expired' %}
| {% set renew_url = url_for('cloud.renew_subscription') %} | {% set renew_url = url_for('cloud.renew_subscription') %}
h3.subscription-missing h4.text-info.py-3
i.pi-info i.pi-info
a(href="{{renew_url}}") Your subscription can be renewed a(href="{{renew_url}}") Your subscription can be renewed
hr hr
p.text-danger Subscription expired on: <strong>{{ expiration_date }}</strong> p.text-danger Subscription expired on: <strong>{{ expiration_date }}</strong>
p p
a.btn.btn-success(href="{{renew_url}}") Renew now a.btn.btn-success.px-5(href="{{renew_url}}") Renew now
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
| {% elif current_user.has_cap('subscriber') %} | {% elif current_user.has_cap('subscriber') %}
h3.subscription-active h4.text-success.py-3
i.pi-check i.pi-heart-filled.text-danger.pr-2
| Your subscription is active | Your subscription is active
//--------------------------------- //---------------------------------
| {% if user_cls == 'subscriber' %} | {% if user_cls == 'subscriber' %}
h4 Thank you for supporting us! h5 Thank you for supporting Blender!
hr hr
p Subscription expires on: <strong>{{ expiration_date }}</strong> p Subscription expires on: <strong>{{ expiration_date }}</strong>
p p
@@ -64,10 +64,9 @@ p Your organisation provides you with your subscription.
| {% endif %} | {% endif %}
hr hr
p
button#recheck_subscription.btn.btn-outline-secondary(onclick="javascript:recheck_subscription(this)") Re-check my subscription
hr button#recheck_subscription.btn.btn-sm.btn-outline-secondary.px-5(onclick="javascript:recheck_subscription(this)")
| Re-check my Subscription
script. script.
function recheck_subscription(button) { function recheck_subscription(button) {

View File

@@ -10,8 +10,9 @@
{{ subfield.label }} {{ subfield.label }}
| {% endfor %} | {% endfor %}
.buttons .py-3
button.btn.btn-outline-success.button-submit(type='submit') button.btn.btn-outline-success.px-5.button-submit(type='submit')
i.pi-check i.pi-check.pr-2
| Save Changes | {{ _("Save Changes") }}
| {% endblock %} | {% endblock %}

View File

@@ -1,14 +1,16 @@
| {% extends 'users/settings/base.html' %} | {% extends 'users/settings/base.html' %}
include ../../../../../pillar/src/templates/mixins/components
| {% block settings_sidebar_menu %} | {% block settings_sidebar_menu %}
| {{ super() }} | {{ super() }}
a(class="{% if title == 'emails' %}active{% endif %}", +nav-secondary-link(
href="{{ url_for('settings.emails') }}") class="{% if title == 'emails' %}active{% endif %}",
li href="{{ url_for('settings.emails') }}")
i.pi-email i.pr-3.pi-email
| Emails span Emails
a(class="{% if title == 'billing' %}active{% endif %}", +nav-secondary-link(
href="{{ url_for('settings.billing') }}") class="{% if title == 'billing' %}active{% endif %}",
li href="{{ url_for('settings.billing') }}")
i.pi-credit-card i.pr-3.pi-credit-card
| Subscription span Subscription
| {% endblock %} | {% endblock %}