Adds styles to no budgets message

This commit is contained in:
decabeza
2018-04-05 12:47:58 +02:00
committed by rgarcia
parent 39c6ac4a91
commit 563c1ebc93
3 changed files with 35 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
<% provide :title do %><%= t('budgets.index.title') %><% end %>
<% provide :title do %><%= t("budgets.index.title") %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budgets_url %>
<% end %>
@@ -152,23 +152,37 @@
</div>
</div>
<% end %>
</div>
<% else %>
<div class="expanded budget no-margin-top margin-bottom">
<div class="row">
<div class="small-12 column">
<div id="section_help" class="margin" data-magellan-target="section_help">
<p class="lead">
<strong><%= t("budgets.index.section_footer.title") %></strong>
</p>
<p><%= t("budgets.index.section_footer.description") %></p>
<p><%= t("budgets.index.section_footer.help_text_1") %></p>
<p><%= t("budgets.index.section_footer.help_text_2") %></p>
<p><%= t("budgets.index.section_footer.help_text_3",
org: link_to(setting['org_name'], new_user_registration_path)).html_safe %></p>
<p><%= t("budgets.index.section_footer.help_text_4") %></p>
</div>
<div class="small-12 medium-9 column padding">
<h1><%= t("budgets.index.title") %></h1>
</div>
</div>
</div>
<% else %>
<%= t("budgets.index.empty_budgets") %>
<% end %>
<div class="row">
<div class="small-12 column">
<div class="callout primary">
<%= t("budgets.index.empty_budgets") %>
</div>
</div>
</div>
<% end %>
<div class="row">
<div class="small-12 column">
<div id="section_help" class="margin" data-magellan-target="section_help">
<p class="lead">
<strong><%= t("budgets.index.section_footer.title") %></strong>
</p>
<p><%= t("budgets.index.section_footer.description") %></p>
<p><%= t("budgets.index.section_footer.help_text_1") %></p>
<p><%= t("budgets.index.section_footer.help_text_2") %></p>
<p><%= t("budgets.index.section_footer.help_text_3",
org: link_to(setting['org_name'], new_user_registration_path)).html_safe %></p>
<p><%= t("budgets.index.section_footer.help_text_4") %></p>
</div>
</div>
</div>

View File

@@ -41,7 +41,7 @@ en:
finished: Finished budget
index:
title: Participatory budgets
empty_budgets: There are no budgets
empty_budgets: There are no budgets.
section_header:
icon_alt: Participatory budgets icon
title: Participatory budgets
@@ -131,7 +131,7 @@ en:
already_added: You have already added this investment project
already_supported: You have already supported this investment project. Share it!
support_title: Support this project
confirm_group:
confirm_group:
one: "You can only support investments in %{count} district. If you continue you cannot change the election of your district. Are you sure?"
other: "You can only support investments in %{count} district. If you continue you cannot change the election of your district. Are you sure?"
supports:

View File

@@ -41,7 +41,7 @@ es:
finished: Resultados
index:
title: Presupuestos participativos
empty_budgets: No hay presupuestos participativos
empty_budgets: No hay presupuestos participativos.
section_header:
icon_alt: Icono de Presupuestos participativos
title: Presupuestos participativos
@@ -131,7 +131,7 @@ es:
already_added: Ya has añadido este proyecto de gasto
already_supported: Ya has apoyado este proyecto de gasto. ¡Compártelo!
support_title: Apoyar este proyecto
confirm_group:
confirm_group:
one: "Sólo puedes apoyar proyectos en %{count} distritos. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro?"
other: "Sólo puedes apoyar proyectos en %{count} distritos. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro?"
supports: