improves messages on header

This commit is contained in:
decabeza
2018-01-04 16:55:23 +01:00
committed by Bertocq
parent c704d100cc
commit cf2a732e3d
5 changed files with 18 additions and 5 deletions

View File

@@ -1145,6 +1145,12 @@
color: #fff;
}
.tagline {
display: block;
font-size: $small-font-size;
font-weight: normal;
}
.callout.warning {
font-size: $base-font-size;

View File

@@ -19,9 +19,9 @@
<%= progress_bar_width(@budget.heading_price(@heading),
@ballot.amount_spent(@heading)) %>">
<p id="amount-spent" class="progress-meter-text spent-amount-text">
<%= @ballot.formatted_amount_spent(@heading) %>
<small><%= t("budgets.progress_bar.assigned") %></small><%= @ballot.formatted_amount_spent(@heading) %>
<span id="amount-available" class="amount-available">
<%= t("budgets.progress_bar.available") %>
<small><%= t("budgets.progress_bar.available") %></small>
<span><%= @ballot.formatted_amount_available(@heading) %></span>
</span>
</p>

View File

@@ -53,7 +53,10 @@
<% end %>
<% else %>
<h1 class="margin-top"><%= @heading.name %></h1>
<h2><%= @budget.formatted_heading_price(@heading) %></h2>
<h2>
<span class="tagline"><%= t("budgets.investments.header.price") %></span>
<%= @budget.formatted_heading_price(@heading) %>
</h2>
<% end %>
</div>
</div>

View File

@@ -131,8 +131,10 @@ en:
different_heading_assigned_html: "You have active votes in another heading: %{heading_link}"
change_ballot: "If your change your mind you can remove your votes in %{check_ballot} and start again."
check_ballot_link: "check my ballot"
price: "This heading have a budget of"
progress_bar:
available: "Available: "
assigned: "You have assigned: "
available: "Available budget: "
show:
group: Group
phase: Actual phase

View File

@@ -131,8 +131,10 @@ es:
different_heading_assigned_html: 'Ya apoyaste propuestas de otra sección del presupuesto: %{heading_link}'
change_ballot: "Si cambias de opinión puedes borrar tus votos en %{check_ballot} y volver a empezar."
check_ballot_link: "revisar mis votos"
price: "Esta partida tiene un presupuesto de"
progress_bar:
available: 'Disponible: '
assigned: "Has asignado: "
available: "Presupuesto disponible: "
show:
group: Grupo
phase: Fase actual