Refactor proposal total counter value
This commit is contained in:
@@ -52,10 +52,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.supports .counter-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.counter-value {
|
||||
font-size: rem-calc(20);
|
||||
font-weight: bold;
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user