X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=29f0045776ab768dc44f763611e67fdd6c4fb438;hb=09d46c3c1c476da11f48f953d257c9fc6e31b8cd;hp=d0855f581bf99d807edf552dcabafdc62f020207;hpb=cadc3894e85527dd5c0688287f8a60638113bae6;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index d0855f5..29f0045 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -9,27 +9,63 @@ - + - + + +
-
- {% if not session.logged_in %} - log in - {% else %} - log out - {% endif %} + +
+
+
+ Accueil + Votes en cours + Archives + {% if session.user and session.user.is_admin %} + Admin + + {% endif %} +
+
+ {% if 'user' in session %} + {{ session.user.name }} + + + {% else %} + Connexion + {% endif %} +
-

votes

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