X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=6fe38aaec6c271b656ef3c542fbd80aaf3e2455b;hb=16be4472e8582f8d8d966b625165ef2e57fc21df;hp=d0855f581bf99d807edf552dcabafdc62f020207;hpb=cadc3894e85527dd5c0688287f8a60638113bae6;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index d0855f5..6fe38aa 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -8,28 +8,69 @@ --> + - + - + + +
-
- {% 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 {% block subtitle %}{% endblock %}

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