X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Flayout.html;h=29f0045776ab768dc44f763611e67fdd6c4fb438;hb=e39a423e56697a035ea099e1f0ab4af1917a5d9e;hp=fe444edca787d55c21d09026a1c497c9629a0c1e;hpb=36ca5927bad5d375c596d5c187cc5b7eb4e62038;p=cavote.git diff --git a/templates/layout.html b/templates/layout.html index fe444ed..29f0045 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -22,20 +22,24 @@ Accueil Votes en cours Archives - {% if session.is_admin %} + {% if session.user and session.user.is_admin %} Admin {% endif %}
- {% if 'username' in session %} - {{ session.username }} + {% if 'user' in session %} + {{ session.user.name }}