0001-villeneuve-dascq-remove-dupplicated-icon-on-toplinks.patch
templates/variants/villeneuve-dascq/includes/user-info.html | ||
---|---|---|
1 | 1 |
{% extends "includes/user-info.html" %} |
2 | 2 | |
3 | 3 |
{% block user-info %} |
4 | 4 |
<span class="theme-back-home"> |
5 | 5 |
<a href="{{portal_url}}" title="retour à l’accueil">Accueil</a> |
6 | 6 |
</span> |
7 |
{{ block.super }} |
|
8 |
{% endblock %} |
|
7 | ||
8 |
<!-- manually replace {{ block.super }} that however produce a loop on django 1.11 --> |
|
9 |
{% skeleton_extra_placeholder user-info %} |
|
10 |
{% if user.is_authenticated %} |
|
11 |
<span class="logged-in"> |
|
12 |
{% if idp_account_url %}<a class="account-link" href="{{idp_account_url}}">{% endif %} |
|
13 |
<span class="connected-user">{% block user-info-user-name %}{{user.first_name}} {{user.last_name}}{% endblock %}</span>{% if idp_account_url %}</a>{% endif %} |
|
14 |
<a accesskey="o" class="logout" href="{% url 'auth_logout' %}">{% block user-info-logout-label %}Déconnexion{% endblock %}</a> |
|
15 |
</span> |
|
16 |
{% else %} |
|
17 |
{% firstof registration_url idp_registration_url as registration_url %} |
|
18 |
<span class="login"><a accesskey="2" class="login-link" href="{% url 'auth_login' %}" |
|
19 |
>{% block user-info-login-label %}Connexion{% endblock %} |
|
20 |
{% if registration_url and include_registration_link != False %}</a>{% endif %} |
|
21 |
<span class="sep">/</span> |
|
22 |
{% if registration_url and include_registration_link != False %}<a class="registration" href="{{registration_url}}" |
|
23 |
>{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span> |
|
24 |
{% endif %} |
|
25 |
{% end_skeleton_extra_placeholder %} |
|
26 | ||
27 |
{% endblock %} |
|
9 |
- |