summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2021-03-31 08:38:22 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2021-03-31 08:41:32 (GMT)
commit6ac05eb18ff091997fcbb404a0e5060934e35bca (patch)
tree247d4588e43a5faaa8517c35099c000518ac4c42
parent5e9addeeda3013e638183d3ca48b7e090c60874e (diff)
downloadcut-publik-theme-6ac05eb18ff091997fcbb404a0e5060934e35bca.zip
cut-publik-theme-6ac05eb18ff091997fcbb404a0e5060934e35bca.tar.gz
cut-publik-theme-6ac05eb18ff091997fcbb404a0e5060934e35bca.tar.bz2
templates: include common user-info block (#52554)
-rw-r--r--templates/theme.html11
1 files changed, 1 insertions, 10 deletions
diff --git a/templates/theme.html b/templates/theme.html
index f2aaaf0..4c8d012 100644
--- a/templates/theme.html
+++ b/templates/theme.html
@@ -61,16 +61,7 @@
<a accesskey="1" href="{% if request.partner %}{{ request.partner.url }}{% else %}{{ logo_link_url|default:'/' }}{% endif %}" style="background-image: {% if request.partner %}url({{ request.partner.logo_url }}){% endif %}">{{ global_title }}</a>
</h1>
{% endblock %}
- <div id="toplinks">
- {% block user-info %}
- {% if user.is_authenticated %}
- <span class="logged-in">
- <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>
- <a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
- </span>
- {% endif %}
- {% endblock %}
- </div> <!-- toplinks -->
+ {% include 'includes/user-info.html' %}
</div>
{% block header-bottom %}{% endblock %}
</div> <!-- header -->