30 lines
1.1 KiB
Django/Jinja
30 lines
1.1 KiB
Django/Jinja
{# 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 %}
|
|
|
|
<li><a href="{% url "index" %}">{% trans "Home" %}</a></li>
|
|
<li class="divider" tabindex="-1"></li>
|
|
{% if user.is_authenticated %}
|
|
<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 %}
|
|
<li><a href="{% url "admin:index" %}">{% trans "Admin" %}</a></li>
|
|
{% endif %}
|
|
<li><a href="{% url "logout" %}">{% trans "Logout" %}</a></li>
|
|
{% else %}
|
|
<li><a href="{% url "login" %}">{% trans "Login" %}</a></li>
|
|
<li><a href="{% url "registration" %}">{% trans "Register" %}</a></li>
|
|
{% endif %}
|