Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[fix bug 1198134] Sort the results in range polls.
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Jul 21, 2016
1 parent 899ca23 commit 86f4947
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions remo/voting/templates/view_voting.jinja
Expand Up @@ -131,19 +131,19 @@ Mozilla Reps - {{ poll.name }} - Results
</span>
</p>
<!-- Results -->
{% for choice in range_poll.choices.all() %}
<div class="row">
<div class="large-11 columns poll-answer">
<a href="{{ url('profiles_view_profile',
display_name=choice.nominee|get_display_name) }}"
target="_blank">
{{ choice.nominee.get_full_name() }}
</a>
</div>
<div class="large-1 columns poll-answer">
{{ choice.votes }}
{% for choice in range_poll.choices.all()|sort(attribute='votes', reverse=True) %}
<div class="row">
<div class="large-11 columns poll-answer">
<a href="{{ url('profiles_view_profile',
display_name=choice.nominee|get_display_name) }}"
target="_blank">
{{ choice.nominee.get_full_name() }}
</a>
</div>
<div class="large-1 columns poll-answer">
{{ choice.votes }}
</div>
</div>
</div>
{% endfor %}
{% endfor %}
</div>
Expand Down

0 comments on commit 86f4947

Please sign in to comment.