Show blue elected line for beamer ajax view.
This commit is contained in:
parent
206ed7bd8b
commit
947d54b8dd
@ -51,16 +51,15 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% for vote in votes %}
|
{% for vote in votes %}
|
||||||
<tr class="{% cycle 'odd' '' %}">
|
<tr class="{% cycle 'odd' '' %}">
|
||||||
<td class="candidate">
|
|
||||||
{% with vote|first as candidate %}
|
{% with vote|first as candidate %}
|
||||||
|
<td class="candidate {% if candidate.1 %}elected{% endif %}">
|
||||||
{% if candidate.1 %}
|
{% if candidate.1 %}
|
||||||
<a class="elected"><img src="/static/images/icons/games-highscores.png" title="{% trans 'Candidate is elected' %}"></a>
|
<a class="elected"><img src="/static/images/icons/games-highscores.png" title="{% trans 'Candidate is elected' %}"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ candidate.0 }}
|
{{ candidate.0 }}
|
||||||
{% endwith %}
|
|
||||||
</td>
|
</td>
|
||||||
{% for v in vote|last %}
|
{% 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 %}
|
{% if v|length == 3 %}
|
||||||
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {% if v.0 %}{{ v.0 }}{% else %}∅{% endif %}<br>
|
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {% if v.0 %}{{ v.0 }}{% else %}∅{% endif %}<br>
|
||||||
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {% if v.1 %}{{ v.1 }}{% else %}∅{% endif %}<br>
|
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {% if v.1 %}{{ v.1 }}{% else %}∅{% endif %}<br>
|
||||||
@ -72,6 +71,7 @@
|
|||||||
{% else %}∅{% endif %}
|
{% else %}∅{% endif %}
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endwith %}
|
||||||
</tr>
|
</tr>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user