User menu tweaks
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
| {% block menu_avatar %}
|
| {% block menu_avatar %}
|
||||||
a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ current_user.email }}")
|
a.navbar-item.dropdown-toggle(href="{{ url_for('settings.profile') }}", data-toggle="dropdown")
|
||||||
img.gravatar(
|
img.gravatar.rounded-circle(
|
||||||
src="{{ current_user.gravatar }}",
|
src="{{ current_user.gravatar }}",
|
||||||
class="{{ subscription }}",
|
class="{{ subscription }}",
|
||||||
alt="Avatar")
|
alt="Avatar")
|
||||||
@@ -28,17 +28,17 @@ a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ curren
|
|||||||
| {% block menu_list %}
|
| {% block menu_list %}
|
||||||
li.subscription-status(class="{{ subscription }}")
|
li.subscription-status(class="{{ subscription }}")
|
||||||
| {% if subscription == 'subscriber' %}
|
| {% if subscription == 'subscriber' %}
|
||||||
a.navbar-item(
|
a.navbar-item.pt-2.pr-3(
|
||||||
href="{{url_for('settings.billing')}}"
|
href="{{ url_for('settings.billing') }}"
|
||||||
title="View subscription info")
|
title="View subscription info")
|
||||||
i.pi-grin
|
i.pi-grin
|
||||||
span Your subscription is active!
|
span.subitem Your subscription is active!
|
||||||
| {% elif subscription == 'demo' %}
|
| {% elif subscription == 'demo' %}
|
||||||
a.navbar-item(
|
a.navbar-item.pt-2.pr-3(
|
||||||
href="{{url_for('settings.billing')}}"
|
href="{{url_for('settings.billing')}}"
|
||||||
title="View subscription info")
|
title="View subscription info")
|
||||||
i.pi-heart-filled
|
i.pi-heart-filled
|
||||||
span You have a free account.
|
span.subitem You have a free account.
|
||||||
| {% elif current_user.has_cap('can-renew-subscription') %}
|
| {% elif current_user.has_cap('can-renew-subscription') %}
|
||||||
a.navbar-item(target='_blank', href="/renew", title="Renew subscription")
|
a.navbar-item(target='_blank', href="/renew", title="Renew subscription")
|
||||||
i.pi-heart
|
i.pi-heart
|
||||||
@@ -46,8 +46,8 @@ li.subscription-status(class="{{ subscription }}")
|
|||||||
span.renew Click here to renew.
|
span.renew Click here to renew.
|
||||||
| {% else %}
|
| {% else %}
|
||||||
a.navbar-item(
|
a.navbar-item(
|
||||||
href="https://store.blender.org/product/membership/"
|
href="https://store.blender.org/product/membership/"
|
||||||
title="Renew subscription")
|
title="Renew subscription")
|
||||||
i.pi-unhappy
|
i.pi-unhappy
|
||||||
span.info Your subscription is not active.
|
span.info Your subscription is not active.
|
||||||
span.renew Click here to renew.
|
span.renew Click here to renew.
|
||||||
@@ -57,8 +57,8 @@ li.subscription-status(class="{{ subscription }}")
|
|||||||
|
|
||||||
li
|
li
|
||||||
a.navbar-item(
|
a.navbar-item(
|
||||||
href="{{ url_for('settings.billing') }}"
|
href="{{ url_for('settings.billing') }}"
|
||||||
title="Billing")
|
title="Billing")
|
||||||
i.pi-credit-card
|
i.pi-credit-card
|
||||||
| Subscription
|
| Subscription
|
||||||
| {% endblock menu_list %}
|
| {% endblock menu_list %}
|
||||||
|
Reference in New Issue
Block a user