X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=templates%2Flayout.html;h=1c6f7bdf42a53da95401548d92f7952133055a0d;hb=07a7e13f132e72a1586da7a55423abfdbd8d623f;hp=7dddad372e4b6be78e1b58b611eb390c174f72ca;hpb=16118385bb1df5fe65a3a57d7ed7550dead1e040;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 7dddad3..1c6f7bd 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 %} +