Show blue elected line for beamer ajax view.

This commit is contained in:
Emanuel Schuetze 2011-09-21 21:10:23 +02:00
parent 206ed7bd8b
commit 947d54b8dd

View File

@ -51,16 +51,15 @@
</tr>
{% for vote in votes %}
<tr class="{% cycle 'odd' '' %}">
<td class="candidate">
{% with vote|first as candidate %}
<td class="candidate {% if candidate.1 %}elected{% endif %}">
{% if candidate.1 %}
<a class="elected"><img src="/static/images/icons/games-highscores.png" title="{% trans 'Candidate is elected' %}"></a>
{% endif %}
{{ candidate.0 }}
{% endwith %}
</td>
{% for v in vote|last %}
<td style="white-space:nowrap;">{% if v %}
<td style="white-space:nowrap;" {% if candidate.1 %}class="elected"{% endif %}>{% if v %}
{% if v|length == 3 %}
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {% if v.0 %}{{ v.0 }}{% else %}&empty;{% endif %}<br>
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {% if v.1 %}{{ v.1 }}{% else %}&empty;{% endif %}<br>
@ -72,6 +71,7 @@
{% else %}&empty;{% endif %}
</td>
{% endfor %}
{% endwith %}
</tr>
{% empty %}
<tr>