Merge branch 'thubrecht/navbar' into 'master'

Corrige le look de la navbar du wiki

See merge request klub-dev-ens/WikiENS!13
This commit is contained in:
Martin Pepin 2021-01-28 20:17:30 +01:00
commit 7111ce1583

View file

@ -11,49 +11,42 @@
{% endblock %}
{% block wiki_header_navlinks %}
<ul class="nav navbar-nav">
<li class="active"><a href="{% url 'wiki:root' %}">Accueil</a></li>
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link text-primary" href="{% url 'wiki:root' %}">Accueil</a>
</li>
</ul>
<div class="navbar-right">
<ul class="nav navbar-nav">
<ul class="navbar-nav">
{% if user.is_authenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" class="dropdown-toggle" data-toggle="dropdown">
{% trans "Paramètres de compte" %}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url "account_email" %}">
<div class="dropdown-menu">
<a class="dropdown-item" href="{% url "account_email" %}">
<i class="fa fa-envelope"></i>
{% trans "Email" %}
</a>
</li>
<li>
<a href="{% url "account_change_password" %}">
<a class="dropdown-item" href="{% url "account_change_password" %}">
<i class="fa fa-lock"></i>
{% trans "Mot de passe" %}
</a>
</li>
<li>
<a href="{% url "socialaccount_connections" %}" title="Clipper…">
<a class="dropdown-item" href="{% url "socialaccount_connections" %}" title="Clipper…">
<i class="fa fa-sign-in"></i>
{% trans "Connexions par tiers" %}
</a>
</li>
<li class="divider"></span>
<li>
<a href="{% url "account_logout" %}">
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url "account_logout" %}">
<i class="fa fa-power-off"></i>
{% trans "Déconnexion" %}
</a>
</li>
</ul>
</div>
</li>
{% else %}
<li>
<a href="{% url "account_signup" %}">{% trans "Sign Up" %}</a>
<li class="nav-item">
<a class="nav-link" href="{% url "account_signup" %}">{% trans "Sign Up" %}</a>
</li>
{% endif %}
</ul>