#287 fix elected candidate in assignment-slide

This commit is contained in:
Oskar Hahn 2012-07-13 11:33:56 +02:00
parent 1b0a9b27ef
commit 88cb44e0c3

View File

@ -61,7 +61,7 @@
{% for candidate, poll_list in vote_results.items %}
<tr class="{% cycle 'odd' '' %}">
<td class="candidate{% if candidate.1 %} elected{% endif %}">
<td class="candidate{% if candidate in assignment.elected.all %} elected{% endif %}">
{% if candidate in assignment.elected.all %}
<a class="elected">
<img src="{% static 'images/icons/voting-yes.png' %}" title="{% trans 'Candidate is elected' %}">