X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=fff1187acba2c49e3e07989d2b460cd4b8f72110;hb=3c19321cfaca486ce5a3b7c68a58e9c1dfceefa2;hp=7dddad372e4b6be78e1b58b611eb390c174f72ca;hpb=16118385bb1df5fe65a3a57d7ed7550dead1e040;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 7dddad3..fff1187 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

+

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 %} +