X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=de19320d46be722ae35af319997fd653f1b4a16e;hb=2c48c6a1923496c3d7ee79ea8e1c397db1399f85;hp=51341066bd746c15934e59957f5d4e558d3e457f;hpb=a488f7c479cda8017421a8e4f59012bd659fc5ca;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 5134106..de19320 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,23 +19,29 @@
- 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 }} @@ -46,7 +52,7 @@
-

Outil de vote du CA FFDN

+

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 +64,9 @@ {% endif %} {% endwith %} +
{% block body %}{% endblock %} +