Skip to content

Commit

Permalink
Modify results page to use approval voting percentages not vote ratio.
Browse files Browse the repository at this point in the history
  • Loading branch information
fsargent committed Jul 25, 2024
1 parent 931ed51 commit 12b5660
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions approval_polls/templates/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ <h3 class="h5 {% if choice in leading_choices %}text-success font-weight-bold{%
<div class="progress" style="height: 25px;">
<div class="progress-bar {% if choice in leading_choices %}bg-success{% endif %}"
role="progressbar"
style="width: {% widthratio choice.vote_count poll.total_votes 100 %}%"
aria-valuenow="{% widthratio choice.vote_count poll.total_votes 100 %}"
style="width: {% widthratio choice.vote_count poll.total_ballots 100 %}%"
aria-valuenow="{% widthratio choice.vote_count poll.total_ballots 100 %}"
aria-valuemin="0"
aria-valuemax="100">
<span class="font-weight-bold">{% widthratio choice.vote_count poll.total_votes 100 %}%</span>
aria-valuemax="{{ poll.total_ballots }}">
<span class="font-weight-bold">{% widthratio choice.vote_count poll.total_ballots 100 %}%</span>
</div>
</div>
</div>
Expand Down

0 comments on commit 12b5660

Please sign in to comment.