Corrige le look de la navbar du wiki

This commit is contained in:
Tom Hubrecht 2021-01-28 15:24:41 +01:00
parent e8db9f46a6
commit 69d34e5a44

View file

@ -6,57 +6,50 @@
{% block wiki_header_branding %}
<a id="navbar-title" class="navbar-brand" href="/">
Wiki&nbsp;<img src="{% static 'img/logoENS-small.png' %}" style="display:inline-block; height:100%;" />&nbsp;ENS
Wiki&nbsp;<img src="{% static 'img/logoENS-small.png' %}" style="display:inline-block; height:100%;" />&nbsp;ENS
</a>
{% 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">
{% if user.is_authenticated %}
<li class="dropdown">
<a 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" %}">
<i class="fa fa-envelope"></i>
{% trans "Email" %}
</a>
<ul class="navbar-nav">
{% if user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" class="dropdown-toggle" data-toggle="dropdown">
{% trans "Paramètres de compte" %}
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{% url "account_email" %}">
<i class="fa fa-envelope"></i>
{% trans "Email" %}
</a>
<a class="dropdown-item" href="{% url "account_change_password" %}">
<i class="fa fa-lock"></i>
{% trans "Mot de passe" %}
</a>
<a class="dropdown-item" href="{% url "socialaccount_connections" %}" title="Clipper…">
<i class="fa fa-sign-in"></i>
{% trans "Connexions par tiers" %}
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url "account_logout" %}">
<i class="fa fa-power-off"></i>
{% trans "Déconnexion" %}
</a>
</div>
</li>
<li>
<a href="{% url "account_change_password" %}">
<i class="fa fa-lock"></i>
{% trans "Mot de passe" %}
</a>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{% url "account_signup" %}">{% trans "Sign Up" %}</a>
</li>
<li>
<a 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" %}">
<i class="fa fa-power-off"></i>
{% trans "Déconnexion" %}
</a>
</li>
</ul>
</li>
{% else %}
<li>
<a href="{% url "account_signup" %}">{% trans "Sign Up" %}</a>
</li>
{% endif %}
</ul>
{% endif %}
</ul>
</div>
{% endblock %}