add "premium" next to name if user is premium
This commit is contained in:
parent
b973a37073
commit
acd1d23e7c
|
@ -31,7 +31,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span class="ml-2 d-none d-lg-block">
|
<span class="ml-2 d-none d-lg-block">
|
||||||
<span class="text-default">{{ current_user.name }}</span>
|
<span class="text-default">
|
||||||
|
{{ current_user.name }}
|
||||||
|
{% if current_user.is_premium() %}
|
||||||
|
- <small class="text-success">Premium</small>
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
<small class="text-muted d-block mt-1">{{ current_user.email }}</small>
|
<small class="text-muted d-block mt-1">{{ current_user.email }}</small>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -44,13 +49,13 @@
|
||||||
{% if current_user.is_premium() %}
|
{% if current_user.is_premium() %}
|
||||||
<a class="dropdown-item" href="{{ url_for('dashboard.billing') }}">
|
<a class="dropdown-item" href="{{ url_for('dashboard.billing') }}">
|
||||||
<i class="dropdown-icon fe fe-dollar-sign"></i> Billing
|
<i class="dropdown-icon fe fe-dollar-sign"></i> Billing
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
||||||
<i class="dropdown-icon fe fe-log-out"></i> Sign out
|
<i class="dropdown-icon fe fe-log-out"></i> Sign out
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue