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
|
||||||
|
Reference in New Issue
Block a user