You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.2 KiB
56 lines
2.2 KiB
{% comment %}
|
|
# This file is part of k4ever, a point-of-sale system
|
|
# Contact............ <k4ever@lists.someserver.de>
|
|
# Website............ http://k4ever.someserver.de/
|
|
# Bug tracker........ http://k4ever.someserver.de/report
|
|
#
|
|
# Licensed under GNU Affero General Public License v3 or later
|
|
{% endcomment %}
|
|
|
|
{% load navigation_extras %}
|
|
|
|
{% url 'transactions' as transactions %}
|
|
{% url 'main.views.startpage' as home %}
|
|
{% url 'buyable_overview' as store %}
|
|
{% url 'buyable_history' as history %}
|
|
{% url 'main_settings' as settings %}
|
|
{% url 'logout' as logout %}
|
|
{% url 'login' as login %}
|
|
{% url 'register' as register %}
|
|
|
|
<ul role="navigation sitemap" class="nav">
|
|
{% if user.is_authenticated %}
|
|
<li class="{% active home %}"><a href="{{ home }}">Home</a></li>
|
|
<li class="{% active store %}"><a href="{{ store }}">Einkaufen</a></li>
|
|
<li class="{% active transactions %}"><a href="{{ transactions }}">Konto</a></li>
|
|
<li class="{% active history %}"><a href="{{ history }}">Frühere Einkäufe</a></li>
|
|
<li class="divider-vertical" role="presentation"></li>
|
|
<ul class="nav">
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="icon user"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li class="{% active settings %}"><a href="{{ settings }}"><i class="icon-cog"></i> Einstellungen</a></li>
|
|
{% if user.is_staff %}
|
|
<li class=""><a href="/admin/"><i class="icon-lock"></i> Administration</a></li>
|
|
{% endif %}
|
|
<li class="{% active logout %}"><a href="{{ logout }}"><i class="icon-off"></i> Abmelden</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
{% else %}
|
|
<li class="{% active login %}"><a href="{{ login }}">Anmelden</a></li>
|
|
<li class="{% active register %}"><a href="{{ register }}">Registrieren</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% if user.is_authenticated %}
|
|
<div class="pull-right">
|
|
<span class="brand balance">Kontostand: {{ user.userprofile_set.get.balance|floatformat:2 }} €</span>
|
|
<form class="navbar-search">
|
|
<input placeholder="Suche und kaufe..." class="search-query autocomplete"
|
|
type="search" name="search_term" value="Lade Daten..."
|
|
disabled="disabled" />
|
|
</form>
|
|
</div>
|
|
{% endif %}
|