Projet

Général

Profil

0007-montpellier-simplify-user-info-block-template-43593.patch

Voir les différences:

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

 static/montpellier/_custom.scss          |  2 +-
 templates/variants/montpellier/base.html | 10 ----------
 2 files changed, 1 insertion(+), 11 deletions(-)
static/montpellier/_custom.scss
899 899
		right: 0;
900 900
		display: inline-block;
901 901
		width: auto;
902
		#toplinks span.connected-user {
902
		#toplinks a.account-link {
903 903
			display: none;
904 904
		}
905 905
		@media screen and ($max-mobile-viewport) {
templates/variants/montpellier/base.html
10 10
  {% endblock %}
11 11
{% endblock %}
12 12

  
13
{% block user-info %}
14
          {% if user.is_authenticated %}
15
          <span class="logged-in">
16
            {% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %}
17
            <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %}
18
            <a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
19
          </span>
20
          {% endif %}
21
{% endblock %}
22

  
23 13
{% block messages %}
24 14
{% if messages %}
25 15
  <div id="messages" class="messages-login">
26
-