add "premium" next to name if user is premium

This commit is contained in:
Son NK 2019-11-16 22:58:09 +01:00
parent b973a37073
commit acd1d23e7c
1 changed files with 8 additions and 3 deletions

View File

@ -31,7 +31,12 @@
{% endif %}
<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>
</span>
</a>
@ -44,13 +49,13 @@
{% if current_user.is_premium() %}
<a class="dropdown-item" href="{{ url_for('dashboard.billing') }}">
<i class="dropdown-icon fe fe-dollar-sign"></i> Billing
</a>
</a>
{% endif %}
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
<i class="dropdown-icon fe fe-log-out"></i> Sign out
</a>
</div>
</div>