0002-grand-chambery-simplify-user-info-block-template-435.patch
static/grand-chambery/_custom.scss | ||
---|---|---|
84 | 84 |
} |
85 | 85 |
.sep { |
86 | 86 |
color: $red; |
87 |
display: inline-block; |
|
88 |
vertical-align: middle; |
|
89 |
line-height: 1em; |
|
90 |
width: 2px; |
|
91 |
overflow: hidden; |
|
92 |
background-color: currentColor; |
|
93 |
margin: 0 .33em; |
|
87 | 94 |
} |
88 | 95 |
@media screen and ($max-mobile-viewport) { |
89 | 96 |
display: none; |
templates/variants/grand-chambery/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">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %} |
|
10 |
<a accesskey="o" class="logout" href="{% url 'auth_logout' %}">Déconnexion</a> |
|
11 |
</span> |
|
12 |
{% else %} |
|
13 |
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Je me connecte</a> |
|
14 |
<span class="sep">|</span> |
|
15 |
<a class="registration" href="{{idp_registration_url}}">Je m'inscris</a></span> |
|
16 |
{% endif %} |
|
17 |
{% end_skeleton_extra_placeholder %} |
|
18 |
{% endblock %} |
|
4 | ||
5 |
{% block user-info-login-label %}Je me connecte{% endblock %} |
|
6 |
{% block user-info-registration-label %}Je m'inscris{% endblock %} |
|
19 | 7 | |
20 | 8 |
{% block before-main-content %} |
21 | 9 |
{{ block.super }} |
22 |
- |