Update Menue
This commit is contained in:
parent
fae852221a
commit
95a28f7cc5
@ -25,43 +25,43 @@
|
|||||||
<body>
|
<body>
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="{% url 'index' %}">{% settings_value "PRODUCT_INFO" %}</a>
|
<a class="navbar-brand" href="{% url 'index' %}">{% settings_value "PRODUCT_INFO" %}</a>
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainMenu"
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||||
aria-controls="mainMenu" aria-expanded="false" aria-label="Toggle navigation">
|
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
||||||
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="mainMenu">
|
<div class="collapse navbar-collapse" id="navbarSupportetContent">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'billard:location_index' %}">Standorte</a>
|
<a class="nav-link" href="{% url 'billard:location_index' %}">Standorte</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="userMenu" data-toggle="dropdown"
|
<a class="nav-link dropdown-toggle" href="#" id="userMenu" role="button"
|
||||||
aria-haspopup="true" aria-expanded="false">
|
data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
|
<ul class="dropdown-menu" aria-labelledby="userMenu">
|
||||||
<a class="dropdown-item" href="{% url 'billard:my_account' %}">My account</a>
|
<li><a class="dropdown-item" href="{% url 'billard:my_account' %}">My account</a>
|
||||||
{% if user.is_superuser %}
|
|
||||||
<a class="dropdown-item" href="/admin">Administration</a>
|
|
||||||
{% endif %}
|
|
||||||
<a class="disabled dropdown-item"
|
|
||||||
href="#">{% settings_value "PRODUCT_VERSION" %}</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item" href="{% url 'logout' %}">Log out</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
|
{% if user.is_superuser %}
|
||||||
|
<li><a class="dropdown-item" href="{% url 'admin:index' %}">Administration</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
<li><a class="dropdown-item" href="#">{% settings_value "PRODUCT_VERSION" %}</a>
|
||||||
|
</li>
|
||||||
|
<li><a class="dropdown-item" href="{% url 'logout' %}">Logout</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form class="form-inline ml-auto">
|
<form class="form-inline ml-auto">
|
||||||
<a href="{% url 'login' %}" class="btn btn-outline-secondary">Log in</a>
|
<a href="{% url 'login' %}" class="btn btn-outline-secondary">Log in</a>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user