Refactor proposal total counter value

This commit is contained in:
decabeza
2019-03-19 16:59:57 +01:00
parent 9b95870c12
commit e949d4d163
4 changed files with 14 additions and 12 deletions

View File

@@ -52,10 +52,6 @@
}
}
.supports .counter-label {
display: block;
}
.counter-value {
font-size: rem-calc(20);
font-weight: bold;

View File

@@ -24,9 +24,13 @@
<div class="counter-value">
<%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %>
/
<%= t("layouts.dashboard.proposal_totals.support_count", count: number_with_delimiter(next_goal_supports, delimiter: '.')).html_safe %>
<%= number_with_delimiter(next_goal_supports, delimiter: '.') %>
</div>
<div class="counter-label">
<%= t("layouts.dashboard.proposal_totals.supports", count: proposal.votes_for.size) %>
<br>
<%= t("layouts.dashboard.proposal_totals.current_goal") %>
</div>
<span class="counter-label"><%= t("layouts.dashboard.proposal_totals.current_goal") %></span>
</div>
<div class="next-goal-progress">

View File

@@ -210,9 +210,10 @@ en:
show_proposal: Show proposal
preview_proposal: Preview proposal
current_goal: Current goal
support_count:
one: "%{count} support"
other: "%{count} supports"
supports:
zero: No supports
one: 1 Support
other: "Supports"
footer:
accessibility: Accessibility
conditions: Terms and conditions of use

View File

@@ -210,9 +210,10 @@ es:
show_proposal: Ver propuesta
preview_proposal: Previsualizar propuesta
current_goal: Meta actual
support_count:
one: "%{count} <span class='counter-label'>Apoyo</span>"
other: "%{count} <span class='counter-label'>Apoyos</span>"
supports:
zero: Sin apoyos
one: 1 Apoyo
other: "Apoyos"
footer:
accessibility: Accesibilidad
conditions: Condiciones de uso