Skip to content

Commit

Permalink
Merge pull request #13 from bogdanvlviv/patch-1
Browse files Browse the repository at this point in the history
added tag <nav></nav>
  • Loading branch information
matenia committed Jan 4, 2016
2 parents 17d7a52 + ef2c6c5 commit 9df61d4
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
-%>
<%- pagination_class ||= '' %>
<%= paginator.render do -%>
<ul class="pagination <%= pagination_class %>">
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
<% each_page do |page| -%>
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
<%= page_tag page %>
<% elsif !page.was_truncated? -%>
<%= gap_tag %>
<nav>
<ul class="pagination <%= pagination_class %>">
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
<% each_page do |page| -%>
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
<%= page_tag page %>
<% elsif !page.was_truncated? -%>
<%= gap_tag %>
<% end -%>
<% end -%>
<% end -%>
<%= next_page_tag unless current_page.last? %>
<%= last_page_tag unless current_page.last? %>
</ul>
<%= next_page_tag unless current_page.last? %>
<%= last_page_tag unless current_page.last? %>
</ul>
</nav>
<% end -%>

0 comments on commit 9df61d4

Please sign in to comment.