summaryrefslogtreecommitdiffstats
path: root/templates/authentic2/base.html
blob: 9da27f0537ffb1a28f164bd2e3a780dea6006067 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
{% load authentic2 %}
{% extends theme_base %}

{% block extra-top-head %}
  {% block extrascripts %}
  {% endblock %}
  {% block extra_scripts %}
  {% endblock %}
  {% renderblock "css" %}
  {% renderblock "js" %}
{% endblock %}

{% block extra-body-args %}
{% block bodyargs %}
{% endblock %}
{% endblock %}

{% block user-name %}
{% if user.is_authenticated %}{{user.get_full_name}}{% else %}Compte Citoyen{% 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 %}

{% block left-menu-links %}
    {% if request.user.is_authenticated %}
				    <li><a href="{{ idp_url }}accounts/">Mon compte</a></li>
				    <li><a href="{{ portal_url }}demarches-en-cours/">Mes démarches en cours</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{% url 'auth_logout' %}">Déconnexion</a></li>
	{% else %}
				    <li><a href="{{ portal_url }}login/">Connexion</a></li>
				    <li><a href="{{ idp_url }}accounts/register/">Créer un compte</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{{ portal_url }}aide/">Aide</a></li>
	{% endif %}
{% endblock %}