arrowcounter/counter/templates/menu.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2019-07-27 11:58:09 +00:00
{# vim: set ft=htmldjango ts=2 sw=2 et tw=80: #}
{% load i18n %}
{% 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>
{% 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>
<li><a href="{% url "stats" %}">{% trans "Stats" %}</a></li>
<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>
{% endif %}
2019-07-27 11:58:09 +00:00
<li><a href="{% url "logout" %}">{% trans "Logout" %}</a></li>
{% 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>
{% endif %}