removes hardcoding of proposal's supports

makes it dynamic based on Proposal.votes_needed_for_success
This commit is contained in:
Juanjo Bazán
2015-11-03 19:20:13 +01:00
parent 4694cf1f64
commit 628cbd9e20
3 changed files with 6 additions and 6 deletions

View File

@@ -10,8 +10,8 @@
<span class="total-supports">
<%= t("proposals.proposal.supports", count: proposal.total_votes) %>&nbsp;
<span>
<abbr title="<%= t("proposals.proposal.census_percent") %>">
<%= t("proposals.proposal.supports_necessary") %>
<abbr title="<%= t("proposals.proposal.reason_for_supports_necessary") %>">
<%= t("proposals.proposal.supports_necessary", number: number_with_delimiter(Proposal.votes_needed_for_success)) %>
</abbr>
</span>
</span>

View File

@@ -184,8 +184,8 @@ en:
zero: "No supports"
one: "1 support"
other: "%{count} supports"
supports_necessary: "53,726 supports needed"
census_percent: "2% of Census"
supports_necessary: "%{number} supports needed"
reason_for_supports_necessary: "2% of Census"
total_percent: "100%"
already_supported: "You have already supported this proposal. Share it!"
form:

View File

@@ -184,8 +184,8 @@ es:
zero: "Sin apoyos"
one: "1 apoyo"
other: "%{count} apoyos"
supports_necessary: "53.726 apoyos necesarios"
census_percent: "2% del Censo"
supports_necessary: "%{number} apoyos necesarios"
reason_for_supports_necessary: "2% del Censo"
total_percent: "100%"
already_supported: "¡Ya has apoyado esta propuesta, compártela!"
form: