summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-07-26 11:18:27 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-26 11:18:27 (GMT)
commitfdee3ed6766d7f128e92499f34d5d6a72690e685 (patch)
treef5d8567604aacaec95e20ce47ca146bbe12feaea
parent529ea75dc34087d9ab64622855ccb63962d99ce1 (diff)
downloadmontpellier-themes-fdee3ed6766d7f128e92499f34d5d6a72690e685.zip
montpellier-themes-fdee3ed6766d7f128e92499f34d5d6a72690e685.tar.gz
montpellier-themes-fdee3ed6766d7f128e92499f34d5d6a72690e685.tar.bz2
restore base.html as it has been removed from publik-base-theme (#25154)v0.42
-rw-r--r--templates/base.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..7a8a772
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,33 @@
+{% extends theme_base %}
+
+{% block extra-body-args %}
+{% block bodyargs %}
+{% endblock %}
+{% endblock %}
+
+{% block placeholder-content %}
+ {% block content %}
+ {% endblock %}
+{% endblock %}
+
+{% block user-info %}
+ {% if user.is_authenticated %}
+ <span class="logged-in">
+ {% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %}
+ <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %}
+ <a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
+ </span>
+ {% endif %}
+{% endblock %}
+
+{% block messages %}
+{% if messages %}
+ <div id="messages" class="messages-login">
+ <ul class="messages">
+ {% for message in messages %}
+ <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
+ {% endfor %}
+ </ul>
+ </div>
+{% endif %}
+{% endblock %}