mirror of
https://github.com/mcasimir/kaminari-bootstrap.git
synced 2022-11-09 13:46:52 -05:00
Fix a bug
Fix :undefined "total_pages" in kaminari helper paginator kaminari (0.13.0)
This commit is contained in:
parent
d28af1aed6
commit
cf265f69cb
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
|||
-%>
|
||||
<%= paginator.render do -%>
|
||||
<nav class="pagination">
|
||||
<% if total_pages > 0 -%>
|
||||
<ul>
|
||||
<%= first_page_tag unless current_page.first? %>
|
||||
<%= prev_page_tag unless current_page.first? %>
|
||||
|
@ -22,6 +21,5 @@
|
|||
<%= next_page_tag unless current_page.last? %>
|
||||
<%= last_page_tag unless current_page.last? %>
|
||||
</ul>
|
||||
<% end -%>
|
||||
</nav>
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue