Improves styles and i18n for budget results
This commit is contained in:
@@ -312,6 +312,11 @@ body.admin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[class^="icon-"].delete {
|
||||||
|
border: 0;
|
||||||
|
font-size: $base-font-size;
|
||||||
|
}
|
||||||
|
|
||||||
.verified {
|
.verified {
|
||||||
color: $check;
|
color: $check;
|
||||||
|
|
||||||
|
|||||||
@@ -234,6 +234,14 @@ a {
|
|||||||
color: $brand;
|
color: $brand;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.no-margin-top {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.no-padding-top {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
@@ -1194,6 +1202,16 @@ table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-for-mobile {
|
||||||
|
|
||||||
|
@include breakpoint(medium down) {
|
||||||
|
th, td {
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 12. Social
|
// 12. Social
|
||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,28 @@
|
|||||||
<div class="small-12 medium-10 column" id="results-container">
|
<div class="small-12 medium-9 column" id="results-container">
|
||||||
<h2 class="inline-block">
|
<h3 class="inline-block">
|
||||||
<%= heading.name %>
|
<%= heading.name %>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<span class="float-right">
|
<%= link_to t("budgets.results.show_all_link"), "#",
|
||||||
<%= link_to t("budgets.results.show_all_link"), "#",
|
class: "js-toggle-link button hollow margin-bottom float-right",
|
||||||
class: "js-toggle-link button hollow margin-bottom",
|
data: {'toggle-selector' => '.js-discarded',
|
||||||
data: {'toggle-selector' => '.js-discarded',
|
'toggle-text' => t("budgets.results.hide_discarded_link")} %>
|
||||||
'toggle-text' => t("budgets.results.hide_discarded_link")} %>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<table id="budget-investments-results">
|
<table id="budget-investments-results" class="table-for-mobile">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">
|
<th scope="col">
|
||||||
<%= t("budgets.results.spending_proposal") %>
|
<%= t("budgets.results.spending_proposal") %>
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" class="text-right">
|
<th scope="col" class="text-center">
|
||||||
<%= t("budgets.results.ballot_lines_count") %>
|
<%= t("budgets.results.ballot_lines_count") %>
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" class="text-right">
|
<th scope="col" class="text-center">
|
||||||
<%= t("budgets.results.price") %>
|
<%= t("budgets.results.price") %>
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" class="text-right"
|
<th scope="col" class="text-right">
|
||||||
title="<%= t("budgets.results.amount_available") %>"
|
<%= format_price(heading.price) %><br>
|
||||||
style="width:120px">
|
<small><%= t("budgets.results.amount_available") %></small>
|
||||||
<%= format_price(heading.price) %>
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -48,7 +45,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="icon-x">
|
<span class="icon-x delete">
|
||||||
<span class="sr-only">
|
<span class="sr-only">
|
||||||
<%= t("budgets.results.discarded") %>
|
<%= t("budgets.results.discarded") %>
|
||||||
</span>
|
</span>
|
||||||
@@ -57,10 +54,10 @@
|
|||||||
<%= link_to investment.title,
|
<%= link_to investment.title,
|
||||||
budget_investment_path(@budget, investment) %>
|
budget_investment_path(@budget, investment) %>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-center">
|
||||||
<%= investment.ballot_lines_count %>
|
<%= investment.ballot_lines_count %>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right" style="width:100px">
|
<td class="text-center">
|
||||||
<%= format_price investment.price %>
|
<%= format_price investment.price %>
|
||||||
</td>
|
</td>
|
||||||
<td class="small text-right"
|
<td class="small text-right"
|
||||||
@@ -72,5 +69,4 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -1,36 +1,24 @@
|
|||||||
<% provide :title, t("budgets.results.page_title") %>
|
<% provide :title, t("budgets.results.page_title", budget: @budget.name) %>
|
||||||
|
<% content_for :canonical do %>
|
||||||
|
<%= render "shared/canonical", href: budget_results_url(@budget, heading_id: @result.heading) %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="expanded spending-proposals results no-margin-top">
|
<div class="expanded budget no-margin-top">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column padding text-center">
|
<div class="small-12 column padding text-center">
|
||||||
<%= link_to budgets_path, class: "left back" do %>
|
<%= back_link_to budget_path(@budget) %>
|
||||||
<i class="icon-angle-left"></i>
|
|
||||||
<%= t("shared.back") %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<h1 class="title">
|
<h2 class="title">
|
||||||
|
<%= @budget.name %><br>
|
||||||
<%= t("budgets.results.heading") %>
|
<%= t("budgets.results.heading") %>
|
||||||
</h1>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row margin-top">
|
<div class="row margin-top">
|
||||||
<div class="small-12 column">
|
<div class="small-12 medium-3 column">
|
||||||
<ul class="tabs">
|
<ul class="menu vertical no-margin-top no-padding-top">
|
||||||
<li class="tabs-title is-active">
|
|
||||||
<span class="sr-only">
|
|
||||||
<%= t("shared.you_are_in") %>
|
|
||||||
</span>
|
|
||||||
<%= link_to t("budgets.results.results_link"), "#", class: "is-active" %>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="small-12 medium-2 column">
|
|
||||||
<ul class="menu vertical no-padding">
|
|
||||||
<li>
|
<li>
|
||||||
<strong>
|
<strong>
|
||||||
<%= t("budgets.results.geozone_selection_title") %>
|
<%= t("budgets.results.geozone_selection_title") %>
|
||||||
@@ -39,7 +27,7 @@
|
|||||||
|
|
||||||
<% @budget.headings.each do |heading| %>
|
<% @budget.headings.each do |heading| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to content_tag(:strong, heading.name),
|
<%= link_to heading.name,
|
||||||
budget_results_path(@budget, heading_id: heading.id) %>
|
budget_results_path(@budget, heading_id: heading.id) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -37,11 +37,9 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @budget.finished? %>
|
<% if @budget.finished? %>
|
||||||
<div>
|
<%= link_to t("budgets.show.see_results"),
|
||||||
<%= link_to "Results",
|
budget_results_path(@budget, heading_id: @budget.headings.first),
|
||||||
budget_results_path(@budget,
|
class: "button margin-top expanded" %>
|
||||||
heading_id: @budget.headings.first) %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -115,11 +115,10 @@ en:
|
|||||||
unfeasible: See unfeasible investments
|
unfeasible: See unfeasible investments
|
||||||
unselected_title: Investments not selected for balloting phase
|
unselected_title: Investments not selected for balloting phase
|
||||||
unselected: See investments not selected for balloting phase
|
unselected: See investments not selected for balloting phase
|
||||||
|
see_results: See results
|
||||||
results:
|
results:
|
||||||
page_title: "Participatory budget | Results"
|
page_title: "%{budget} - Results"
|
||||||
heading: "PARTICIPATORY BUDGET"
|
heading: "Participatory budget results"
|
||||||
results_link: Results
|
|
||||||
stats_link: "Participation stats"
|
|
||||||
geozone_selection_title: "By district"
|
geozone_selection_title: "By district"
|
||||||
spending_proposal: Proposal title
|
spending_proposal: Proposal title
|
||||||
ballot_lines_count: Times selected
|
ballot_lines_count: Times selected
|
||||||
@@ -127,6 +126,5 @@ en:
|
|||||||
show_all_link: Show all
|
show_all_link: Show all
|
||||||
price: Cost
|
price: Cost
|
||||||
amount_available: Available budget
|
amount_available: Available budget
|
||||||
incompatible: Incompatibles
|
|
||||||
accepted: "Accepted spending proposal: "
|
accepted: "Accepted spending proposal: "
|
||||||
discarded: "Discarded spending proposal: "
|
discarded: "Discarded spending proposal: "
|
||||||
@@ -115,11 +115,10 @@ es:
|
|||||||
unfeasible: Ver las propuestas inviables
|
unfeasible: Ver las propuestas inviables
|
||||||
unselected_title: Propuestas no seleccionadas para la votación final
|
unselected_title: Propuestas no seleccionadas para la votación final
|
||||||
unselected: Ver las propuestas no seleccionadas para la votación final
|
unselected: Ver las propuestas no seleccionadas para la votación final
|
||||||
|
see_results: Ver resultados
|
||||||
results:
|
results:
|
||||||
page_title: "Presupuestos participativos | Resultados"
|
page_title: "%{budget} - Resultados"
|
||||||
heading: "PRESUPUESTOS PARTICIPATIVOS"
|
heading: "Resultados presupuestos participativos"
|
||||||
results_link: Resultados
|
|
||||||
stats_link: "Estadísticas de participación"
|
|
||||||
geozone_selection_title: "Ámbito de actuación"
|
geozone_selection_title: "Ámbito de actuación"
|
||||||
spending_proposal: Título
|
spending_proposal: Título
|
||||||
ballot_lines_count: Votos
|
ballot_lines_count: Votos
|
||||||
@@ -127,6 +126,5 @@ es:
|
|||||||
show_all_link: Mostrar todas
|
show_all_link: Mostrar todas
|
||||||
price: Coste
|
price: Coste
|
||||||
amount_available: Presupuesto disponible
|
amount_available: Presupuesto disponible
|
||||||
incompatible: Incompatibles
|
|
||||||
accepted: "Propuesta de inversión aceptada: "
|
accepted: "Propuesta de inversión aceptada: "
|
||||||
discarded: "Propuesta de inversión descartada: "
|
discarded: "Propuesta de inversión descartada: "
|
||||||
|
|||||||
Reference in New Issue
Block a user