2019-07-27 11:58:09 +00:00
|
|
|
{# vim: set ft=htmldjango ts=2 sw=2 et tw=80: #}
|
|
|
|
{% load i18n %}
|
|
|
|
|
2018-08-08 18:07:59 +00:00
|
|
|
{% 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 %}
|
|
|
|
|
2019-07-27 11:58:09 +00:00
|
|
|
<li><a href="{% url "index" %}">{% trans "Home" %}</a></li>
|
2019-04-28 13:05:02 +00:00
|
|
|
<li class="divider" tabindex="-1"></li>
|
2018-08-08 18:07:59 +00:00
|
|
|
{% if user.is_authenticated %}
|
2019-07-27 11:58:09 +00:00
|
|
|
<li><a href="{% url "count_list" %}">{% trans "Counts" %}</a></li>
|
|
|
|
<li><a href="{% url "target_edit" %}">{% trans "Set yearly target" %}</a></li>
|
2019-08-06 12:51:29 +00:00
|
|
|
<li><a href="{% url "stats" %}">{% trans "Stats" %}</a></li>
|
2018-08-08 18:07:59 +00:00
|
|
|
<li class="divider" tabindex="-1"></li>
|
|
|
|
{% if user.is_superuser %}
|
2019-07-27 11:58:09 +00:00
|
|
|
<li><a href="{% url "admin:index" %}">{% trans "Admin" %}</a></li>
|
2018-08-08 18:07:59 +00:00
|
|
|
{% endif %}
|
2019-07-27 11:58:09 +00:00
|
|
|
<li><a href="{% url "logout" %}">{% trans "Logout" %}</a></li>
|
2018-08-08 18:07:59 +00:00
|
|
|
{% else %}
|
2019-07-27 11:58:09 +00:00
|
|
|
<li><a href="{% url "login" %}">{% trans "Login" %}</a></li>
|
|
|
|
<li><a href="{% url "registration" %}">{% trans "Register" %}</a></li>
|
2018-08-08 18:07:59 +00:00
|
|
|
{% endif %}
|