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:
commit
7111ce1583
1 changed files with 35 additions and 42 deletions
|
@ -6,57 +6,50 @@
|
|||
|
||||
{% block wiki_header_branding %}
|
||||
<a id="navbar-title" class="navbar-brand" href="/">
|
||||
Wiki <img src="{% static 'img/logoENS-small.png' %}" style="display:inline-block; height:100%;" /> ENS
|
||||
Wiki <img src="{% static 'img/logoENS-small.png' %}" style="display:inline-block; height:100%;" /> 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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue