X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/wiki/creer.php?a=blobdiff_plain;f=templates%2Flayout.html;h=66fd8e5d2b7bc030993f200537ffcfaa1db28a1e;hb=0fb98decd67ec695937480b4d5448adbcd508565;hp=d0855f581bf99d807edf552dcabafdc62f020207;hpb=cadc3894e85527dd5c0688287f8a60638113bae6;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index d0855f5..66fd8e5 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -9,27 +9,65 @@ - + - + + +
-
- {% 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 %} -
- +
+ +
+ + + +