From d2ce3749c6a729861fac51c2f4e4dc32916f97bc Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Mon, 20 Oct 2014 16:31:54 +0200 Subject: [PATCH] fix when choices are added after some votes --- static/css/cavote.css | 4 ++++ templates/vote.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/static/css/cavote.css b/static/css/cavote.css index 397a8ef..a2fae05 100644 --- a/static/css/cavote.css +++ b/static/css/cavote.css @@ -43,6 +43,10 @@ vertical-align: middle; } +.table-votes td.choice-after-vote { + border:2px solid red; + } + .table-votes .yes { background-color: #46a546; /* green */ /*background-color: #049cdb;*/ /* blue */ diff --git a/templates/vote.html b/templates/vote.html index 5d1e4c6..f86aaf9 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -171,7 +171,11 @@ {% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }} {% for choice in choices %} + {% if choice.id in user.choices %} {{ user.choices[choice.id].name }} + {% else %} + Choix postérieur au suffrage + {% endif %} {% endfor %} {% if 'user' in session and (can_vote or (not vote['is_terminated'] and not vote['is_anonymous'])) %} {% if user.userid == session.user.id %} -- 2.20.1