summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 7a8a772b0cae18760d6699b783b4f9700de52442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 %}