diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index f22255e9..700d7cf8 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -53,9 +53,11 @@ def proposals_generator(request, queryset, user_pk=None, check_speaker=True): lookup_params["user"] = request.user try: - obj.latest_vote = LatestVote.objects.get(**lookup_params).css_class() + obj.user_vote = LatestVote.objects.get(**lookup_params).vote + obj.user_vote_css = LatestVote.objects.get(**lookup_params).css_class() except LatestVote.DoesNotExist: - obj.latest_vote = "no-vote" + obj.user_vote = None + obj.user_vote_css = "no-vote" yield obj diff --git a/symposion/templates/reviews/_review_table.html b/symposion/templates/reviews/_review_table.html index adc68950..9c1804b7 100644 --- a/symposion/templates/reviews/_review_table.html +++ b/symposion/templates/reviews/_review_table.html @@ -10,11 +10,12 @@ {% trans "+0" %} {% trans "-0" %} {% trans "-1" %} + {% for proposal in proposals %} - + {{ proposal.number }} @@ -29,6 +30,7 @@ {{ proposal.plus_zero }} {{ proposal.minus_zero }} {{ proposal.minus_one }} + {{ proposal.user_vote|default:"" }} {% endfor %} diff --git a/symposion/templates/reviews/base.html b/symposion/templates/reviews/base.html index a4ba03fd..695d9c8c 100644 --- a/symposion/templates/reviews/base.html +++ b/symposion/templates/reviews/base.html @@ -97,7 +97,8 @@