X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=6fe38aaec6c271b656ef3c542fbd80aaf3e2455b;hb=e3913800e8bccbdc364b7f54d28a8d8efcfa2e1b;hp=9ef9b60c7b6ff12a86174165540a99022a014d08;hpb=2e581ec97eecc1d5d7f6590fa5edce2fadc966f2;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index 9ef9b60..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 %} -
- +
+ +
+ + + +