removes unnecessary heading and nav tag on pagination

This commit is contained in:
Alberto Garcia Cabeza
2016-12-07 12:49:15 +01:00
parent 501d8928ce
commit 442e5df461
3 changed files with 12 additions and 17 deletions

View File

@@ -1,22 +1,19 @@
<%= paginator.render do -%> <%= paginator.render do -%>
<div class="pagination-centered"> <div class="pagination-centered">
<nav> <ul class="pagination text-center margin-top" aria-label="Pagination">
<h2 class="sr-only"><%= t("shared.outline.pagination") %></h2> <%= first_page_tag unless current_page.first? %>
<ul class="pagination text-center margin-top" aria-label="Pagination"> <%= prev_page_tag unless current_page.first? %>
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
<% each_page do |page| -%> <% each_page do |page| -%>
<% if page.left_outer? || page.right_outer? || page.inside_window? -%> <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
<%= page_tag page %> <%= page_tag page %>
<% elsif !page.was_truncated? -%> <% elsif !page.was_truncated? -%>
<%= gap_tag %> <%= gap_tag %>
<% end -%>
<% end -%> <% end -%>
<% end -%>
<%= next_page_tag unless current_page.last? %> <%= next_page_tag unless current_page.last? %>
<%= last_page_tag unless current_page.last? %> <%= last_page_tag unless current_page.last? %>
</ul> </ul>
</nav>
</div> </div>
<% end -%> <% end -%>

View File

@@ -455,7 +455,6 @@ en:
debates: Debates debates: Debates
proposals: Proposals proposals: Proposals
budget: Participatory budget budget: Participatory budget
pagination: Pagination
searcher: Searcher searcher: Searcher
social: social:
blog: Blog blog: Blog

View File

@@ -455,7 +455,6 @@ es:
debates: Debates debates: Debates
proposals: Propuestas proposals: Propuestas
budget: Presupuestos ciudadanos budget: Presupuestos ciudadanos
pagination: Paginación
searcher: Buscador searcher: Buscador
social: social:
blog: Blog blog: Blog