X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=7e6aea81b7cecc18d49f649f98c5a4df915e5a68;hb=HEAD;hp=fe444edca787d55c21d09026a1c497c9629a0c1e;hpb=36ca5927bad5d375c596d5c187cc5b7eb4e62038;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index fe444ed..7e6aea8 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -8,6 +8,7 @@ --> + @@ -19,34 +20,40 @@
- Accueil - Votes en cours - Archives - {% if session.is_admin %} + Accueil + Votes en cours + Archives + {% if session.user and session.user.is_admin %} Admin {% endif %}
- {% if 'username' in session %} - {{ session.username }} + {% if 'user' in session %} + {{ session.user.name }} {% else %} - Connexion + Connexion {% endif %}
-

Outil de vote du CA FFDN

+

{% block subtitle %}{% endblock %}

{% with messages = get_flashed_messages(with_categories="true") %} {% if messages %} {% for category, message in messages %} @@ -58,7 +65,9 @@ {% endif %} {% endwith %} +
{% block body %}{% endblock %} +