Projet

Général

Profil

0006-mincult-simplify-user-info-block-template-43593.patch

Voir les différences:

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

 static/mincult/_custom.scss                      |  6 ++++++
 .../variants/mincult/combo/page_template.html    | 16 ----------------
 2 files changed, 6 insertions(+), 16 deletions(-)
 delete mode 100644 templates/variants/mincult/combo/page_template.html
static/mincult/_custom.scss
17 17
	}
18 18
}
19 19

  
20
#toplinks {
21
	.sep, .registration {
22
		display: none;
23
	}
24
}
25

  
20 26
#nav {
21 27
	ul {
22 28
		margin-top: 0;
templates/variants/mincult/combo/page_template.html
1
{% extends "combo/page_template.html" %}
2
{% load combo %}
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&eacute;connexion</a>
11
          </span>
12
          {% else %}
13
            <span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion</a></span>
14
          {% endif %}
15
{% end_skeleton_extra_placeholder %}
16
{% endblock %}
17
-