Move version to navbar
This commit is contained in:
parent
e9cb109a74
commit
bd111cffb0
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="{{ git_version.url }}">Version : {{ git_version.name }}</a>
|
||||||
|
</li>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
||||||
|
@ -23,12 +26,10 @@
|
||||||
<a class="dropdown-item" href="{% url 'password_change' %}">Modifier le mot de passe</a>
|
<a class="dropdown-item" href="{% url 'password_change' %}">Modifier le mot de passe</a>
|
||||||
<div role="separator" class="dropdown-divider"></div>
|
<div role="separator" class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="{% url 'logout' %}">Déconnexion</a>
|
<a class="dropdown-item" href="{% url 'logout' %}">Déconnexion</a>
|
||||||
<div role="separator" class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item" href="{{ git_version.url }}">Version : {{ git_version.name }}</a>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="nav-item">Anonyme</li>
|
<li class="navbar-text">Anonyme</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue