<%= t("shared.outline.debates") %>
+ <% if @search_terms || @advanced_search_terms || @tag_filter %> +<%= t("shared.search_results") %>
++ <%= page_entries_info @debates %> + <% if !@advanced_search_terms %> + <%= t("debates.index.search_results_html", count: @debates.size, search_term: @search_terms) %> + <% end %> +
+ <% elsif @tag_filter %> +<%= t("shared.search_results") %>
++ <%= page_entries_info @debates %> + <%= t("debates.index.filter_topic", count: @debates.size, topic: @tag_filter) %> +
+ <% end %> +- <%= page_entries_info @debates %> - <% if !@advanced_search_terms %> - <%= t("debates.index.search_results", count: @debates.size, search_term: @search_terms) %> - <% end %> -
- <% elsif @tag_filter %> -- <%= page_entries_info @debates %> - <%= t("debates.index.filter_topic", count: @debates.size, topic: @tag_filter) %> -
- <% end %> -<%= t("shared.outline.proposals") %>
-
+ <% if @search_terms || @advanced_search_terms || @tag_filter || params[:retired].present? %>
+
+
+
+ <% if @search_terms || @advanced_search_terms %>
+ <%= t("shared.search_results") %>
+
<%= page_entries_info @proposals %>
<% if !@advanced_search_terms %>
- <%= t("proposals.index.search_results", count: @proposals.size, search_term: @search_terms) %>
+ <%= t("proposals.index.search_results_html", count: @proposals.size, search_term: @search_terms) %>
<% end %>
-
- <% elsif @tag_filter %>
-
- <%= page_entries_info @proposals %>
- <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %>
-
- <% elsif params[:retired].present? %>
- <%= t("proposals.index.retired_proposals") %>
- <% end %>
+
+ <% elsif @tag_filter %>
+
<%= t("shared.search_results") %>
+
+ <%= page_entries_info @proposals %>
+ <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %>
+
+ <% elsif params[:retired].present? %>
+ <%= t("proposals.index.retired_proposals") %>
+ <% end %>
+
+
+ <% end %>
+
+
+
<% if has_banners? %>
<%= render "shared/banner" %>
diff --git a/config/locales/budgets.en.yml b/config/locales/budgets.en.yml
index 6fba08534..8647b0c92 100644
--- a/config/locales/budgets.en.yml
+++ b/config/locales/budgets.en.yml
@@ -54,9 +54,9 @@ en:
button: Search
placeholder: Search investment projects...
title: Search
- search_results:
- one: " containing the term '%{search_term}'"
- other: " containing the term '%{search_term}'"
+ search_results_html:
+ one: " containing the term '%{search_term}'"
+ other: " containing the term '%{search_term}'"
sidebar:
my_ballot: My ballot
voted_html:
diff --git a/config/locales/budgets.es.yml b/config/locales/budgets.es.yml
index 1cb308472..f3acbe271 100644
--- a/config/locales/budgets.es.yml
+++ b/config/locales/budgets.es.yml
@@ -54,9 +54,9 @@ es:
button: Buscar
placeholder: Buscar propuestas de inversión...
title: Buscar
- search_results:
- one: " que contiene '%{search_term}'"
- other: " que contienen '%{search_term}'"
+ search_results_html:
+ one: " que contiene '%{search_term}'"
+ other: " que contienen '%{search_term}'"
sidebar:
my_ballot: Mis votos
voted_html:
diff --git a/config/locales/en.yml b/config/locales/en.yml
index fdfd821bd..90b8ceadb 100755
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -104,9 +104,9 @@ en:
button: Search
placeholder: Search debates...
title: Search
- search_results:
- one: " containing the term '%{search_term}'"
- other: " containing the term '%{search_term}'"
+ search_results_html:
+ one: " containing the term '%{search_term}'"
+ other: " containing the term '%{search_term}'"
select_order: Order by
start_debate: Start a debate
title: Debates
@@ -330,9 +330,9 @@ en:
button: Search
placeholder: Search proposals...
title: Search
- search_results:
- one: " containing the term '%{search_term}'"
- other: " containing the term '%{search_term}'"
+ search_results_html:
+ one: " containing the term '%{search_term}'"
+ other: " containing the term '%{search_term}'"
select_order: Order by
select_order_long: 'You are viewing proposals according to:'
start_proposal: Create a proposal
@@ -470,6 +470,7 @@ en:
login_to_comment: 'You must %{signin} or %{signup} to leave a comment.'
"yes": "Yes"
"no": "No"
+ search_results: "Search results"
advanced_search:
author_type: 'By author category'
author_type_blank: 'Select a category'
diff --git a/config/locales/es.yml b/config/locales/es.yml
index ca5b33a4e..4f38fc369 100755
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -104,9 +104,9 @@ es:
button: Buscar
placeholder: Buscar debates...
title: Buscar
- search_results:
- one: " que contiene '%{search_term}'"
- other: " que contienen '%{search_term}'"
+ search_results_html:
+ one: " que contiene '%{search_term}'"
+ other: " que contienen '%{search_term}'"
select_order: Ordenar por
start_debate: Empieza un debate
title: Debates
@@ -330,9 +330,9 @@ es:
button: Buscar
placeholder: Buscar propuestas...
title: Buscar
- search_results:
- one: " que contiene '%{search_term}'"
- other: " que contienen '%{search_term}'"
+ search_results_html:
+ one: " que contiene '%{search_term}'"
+ other: " que contienen '%{search_term}'"
select_order: Ordenar por
select_order_long: Estas viendo las propuestas
start_proposal: Crea una propuesta
@@ -470,6 +470,7 @@ es:
login_to_comment: 'Necesitas %{signin} o %{signup} para comentar.'
"yes": "Sí"
"no": "No"
+ search_results: "Resultados de búsqueda"
advanced_search:
author_type: 'Por categoría de autor'
author_type_blank: 'Elige una categoría'
diff --git a/config/locales/kaminari.en.yml b/config/locales/kaminari.en.yml
index 35590c1ca..aa04df74c 100755
--- a/config/locales/kaminari.en.yml
+++ b/config/locales/kaminari.en.yml
@@ -7,11 +7,11 @@ en:
other: Entries
zero: Entries
more_pages:
- display_entries: Displaying %{first} - %{last} of %{total} %{entry_name}
+ display_entries: Displaying %{first} - %{last} of %{total} %{entry_name}
one_page:
display_entries:
- one: There is 1 %{entry_name}
- other: There are %{count} %{entry_name}
+ one: There is 1 %{entry_name}
+ other: There are %{count} %{entry_name}
zero: "%{entry_name} cannot be found"
views:
pagination:
diff --git a/config/locales/kaminari.es.yml b/config/locales/kaminari.es.yml
index 7869cea2a..7cf5bf57e 100644
--- a/config/locales/kaminari.es.yml
+++ b/config/locales/kaminari.es.yml
@@ -7,11 +7,11 @@ es:
other: entradas
zero: entradas
more_pages:
- display_entries: Mostrando %{first} - %{last} de un total de %{total} %{entry_name}
+ display_entries: Mostrando %{first} - %{last} de un total de %{total} %{entry_name}
one_page:
display_entries:
- one: Hay 1 %{entry_name}
- other: Hay %{count} %{entry_name}
+ one: Hay 1 %{entry_name}
+ other: Hay %{count} %{entry_name}
zero: No se han encontrado %{entry_name}
views:
pagination:
<%= t("shared.search_results") %>
+<%= page_entries_info @proposals %> <% if !@advanced_search_terms %> - <%= t("proposals.index.search_results", count: @proposals.size, search_term: @search_terms) %> + <%= t("proposals.index.search_results_html", count: @proposals.size, search_term: @search_terms) %> <% end %> - - <% elsif @tag_filter %> -
- <%= page_entries_info @proposals %> - <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %> -
- <% elsif params[:retired].present? %> -<%= t("proposals.index.retired_proposals") %> - <% end %> +
+ <% elsif @tag_filter %> +
<%= t("shared.search_results") %>
++ <%= page_entries_info @proposals %> + <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %> +
+ <% elsif params[:retired].present? %> +