0004-haute-garonne-cd31-simplify-user-info-block-template.patch
static/haute-garonne-cd31/_custom.scss | ||
---|---|---|
103 | 103 |
display: none; |
104 | 104 |
} |
105 | 105 |
} |
106 |
&.logout { |
|
107 |
display: none; |
|
108 |
} |
|
106 | 109 |
} |
107 | 110 |
@media screen and ($max-mobile-viewport) { |
108 | 111 |
min-width: 130px; |
templates/variants/haute-garonne-cd31/combo/page_template.html | ||
---|---|---|
1 | 1 |
{% extends "combo/page_template.html" %} |
2 | 2 |
{% load combo %} |
3 | 3 | |
4 |
{% block user-info %} |
|
5 |
{% skeleton_extra_placeholder user-info %} |
|
6 |
{% if user.is_authenticated %} |
|
7 |
<span class="logged-in"> |
|
8 |
{% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %} |
|
9 |
<span class="connected-user">Mon compte</span>{% if idp_account_url %}</a>{% endif %} |
|
10 |
</span> |
|
11 |
{% else %} |
|
12 |
{% if idp_registration_url %} |
|
13 |
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion</a> <span class="sep">/</span> |
|
14 |
<a class="registration" href="{{idp_registration_url}}">Inscription</a></span> |
|
15 |
{% else %} |
|
16 |
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion <span class="sep">/</span> Inscription</a></span> |
|
17 |
{% endif %} |
|
18 |
{% endif %} |
|
19 |
{% end_skeleton_extra_placeholder %} |
|
20 |
{% endblock %} |
|
21 | ||
22 | ||
4 |
{% block user-info-user-name %}Mon compte{% endblock %} |
|
23 |
- |