X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=66fd8e5d2b7bc030993f200537ffcfaa1db28a1e;hb=0fb98decd67ec695937480b4d5448adbcd508565;hp=7dddad372e4b6be78e1b58b611eb390c174f72ca;hpb=16118385bb1df5fe65a3a57d7ed7550dead1e040;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 7dddad3..66fd8e5 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,23 +19,27 @@
- 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 +50,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 +62,9 @@ {% endif %} {% endwith %} +
{% block body %}{% endblock %} +