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