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 -%>
|
<%= paginator.render do -%>
|
||||||
<nav class="pagination">
|
<nav class="pagination">
|
||||||
<% if total_pages > 0 -%>
|
|
||||||
<ul>
|
<ul>
|
||||||
<%= first_page_tag unless current_page.first? %>
|
<%= first_page_tag unless current_page.first? %>
|
||||||
<%= prev_page_tag unless current_page.first? %>
|
<%= prev_page_tag unless current_page.first? %>
|
||||||
|
@ -22,6 +21,5 @@
|
||||||
<%= 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>
|
||||||
<% end -%>
|
|
||||||
</nav>
|
</nav>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue