implements percentage in proposal supports

This commit is contained in:
Juanjo Bazán
2015-09-14 19:06:07 +02:00
parent 4a8b86642a
commit a472b4acc8
3 changed files with 33 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
<span class="total-supports">
<%= t("proposals.proposal.supports", count: proposal.total_votes) %>&nbsp;
<!-- percentage of supports -->
(0.1%)
(<%= supports_percentage(proposal) %>)
<!-- /. percentage of supports -->
<span>
<abbr title="<%= t("proposals.proposal.census_percent") %>">