Move version to navbar

This commit is contained in:
Gabriel Augendre 2018-04-02 13:18:19 +02:00
parent e9cb109a74
commit bd111cffb0
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -8,6 +8,9 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<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 %}
<li class="nav-item dropdown">
<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>
<div role="separator" class="dropdown-divider"></div>
<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>
</li>
{% else %}
<li class="nav-item">Anonyme</li>
<li class="navbar-text">Anonyme</li>
{% endif %}
</ul>
</div>