23 lines
718 B
HTML
23 lines
718 B
HTML
{% if mobile and user.is_authenticated %}
|
|
<div class="user-view">
|
|
<div class="background" style="background-color: #444444"></div>
|
|
<a href="#name">
|
|
<span class="white-text name">{{ user.username }}</span>
|
|
</a>
|
|
<a href="#email">
|
|
<span class="white-text email">{{ user.email }}</span>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
<li><a href="{% url "count_list" %}">Counts</a></li>
|
|
<li class="divider" tabindex="-1"></li>
|
|
{% if user.is_superuser %}
|
|
<li><a href="{% url "admin:index" %}">Admin</a></li>
|
|
{% endif %}
|
|
<li><a href="{% url "logout" %}">Logout</a></li>
|
|
{% else %}
|
|
<li><a href="{% url "login" %}">Login</a></li>
|
|
<li><a href="{% url "registration" %}">Register</a></li>
|
|
{% endif %}
|