arrowcounter/counter/templates/menu.html
Claudio Maggioni (maggicl) 016d529941 Added general stats
2019-04-28 15:05:02 +02:00

26 lines
858 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 %}
<li><a href="{% url "index" %}">Home</a></li>
<li class="divider" tabindex="-1"></li>
{% if user.is_authenticated %}
<li><a href="{% url "count_list" %}">Counts</a></li>
<li><a href="{% url "stats" %}">Weekly stats</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 %}