X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=51341066bd746c15934e59957f5d4e558d3e457f;hb=a488f7c479cda8017421a8e4f59012bd659fc5ca;hp=4b8b3e6ef02db28fd71c65d793dddb4d2834ee3a;hpb=f0f55b9ffa8eb40cd2b6e41c47a36993a76d0ce3;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 4b8b3e6..5134106 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -11,25 +11,57 @@ - + + +
-
- {% if not session.logged_in %} - log in - {% else %} - log out - {% endif %} + +
+
+
+ Accueil + Votes en cours + Archives + {% if session.is_admin %} + Admin + + {% endif %} +
+
+ {% if 'username' in session %} + {{ session.username }} + + + {% else %} + Connexion + {% endif %} +
-

Outil de vote du CA FFDN

-{% with messages = get_flashed_messages() %} +
+ +

Outil de vote du CA FFDN

+{% with messages = get_flashed_messages(with_categories="true") %} {% if messages %} - {% endif %} {% endwith %} + {% block body %}{% endblock %} -
- + +
+ + + +