Projet

Général

Profil

0005-lille-simplify-user-info-block-template-43593.patch

Voir les différences:

Subject: [PATCH 05/10] lille: simplify user-info block template (#43593)

 static/lille/_custom.scss                         |  3 +++
 templates/variants/lille/combo/page_template.html | 14 +++-----------
 templates/variants/lille/theme.html               |  7 +++++++
 3 files changed, 13 insertions(+), 11 deletions(-)
 create mode 100644 templates/variants/lille/theme.html
static/lille/_custom.scss
91 91
	a {
92 92
		color: $user-info-color;
93 93
	}
94
	.sep, .registration, .logout {
95
		display: none;
96
	}
94 97
	@media screen and ($max-mobile-viewport) {
95 98
		padding-top: 5px;
96 99
		top: 20px;
templates/variants/lille/combo/page_template.html
5 5
<h1 id="logo"><a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">Mes démarches</a></h1>
6 6
{% endblock %}
7 7

  
8
{% block header-top %}
9
<div id="lille-user-info">
10
{% skeleton_extra_placeholder lille-user-info %}
11
  {% if user.is_authenticated %}
12
  <a href="{{idp_account_url}}">{{ user.first_name }}<br>{{user.last_name }}</a>
13
  {% else %}
14
  <a class="login" href="{% url 'auth_login' %}">Compte<br>personnel</a>
15
  {% endif %}
16
</div>
17
{% end_skeleton_extra_placeholder %}
18
{% endblock %}
8
{% block user-info-user-name %}{{user.first_name}}<br>{{user.last_name}}{% endblock %}
9
{% block user-info-login-label %}Compte<br>personnel{% endblock %}
10

  
templates/variants/lille/theme.html
1
{% extends "theme.html" %}
2

  
3
{% block header-top %}
4
<div id="lille-user-info">
5
	{% block user-info %}{% endblock %}
6
</div>
7
{% endblock %}
0
-