kaminari分页添加上一页下一页
This commit is contained in:
parent
3c946c034a
commit
d266237590
|
@ -7,5 +7,5 @@
|
|||
remote: data-remote
|
||||
-%>
|
||||
|
||||
<%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote %>
|
||||
<%= link_to_unless false, t('views.pagination.last').html_safe, url, :remote => remote %>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
-%>
|
||||
<%= paginator.render do -%>
|
||||
<ul id="paginator" class="wlist">
|
||||
<%= prev_page_tag unless current_page.first? %>
|
||||
<%= prev_page_tag %>
|
||||
<% each_page do |page| -%>
|
||||
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
||||
<%= page_tag page %>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<%= gap_tag %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<%= next_page_tag unless current_page.last? %>
|
||||
<%= next_page_tag %>
|
||||
<!--<%#= last_page_tag unless current_page.last? %>-->
|
||||
</ul>
|
||||
<% end -%>
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
remote: data-remote
|
||||
-%>
|
||||
<li >
|
||||
<%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote ,:class=>"previous c_blue"%>
|
||||
<%= link_to_unless false, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote ,:class=>"previous c_blue"%>
|
||||
</li>
|
||||
|
||||
|
|
1818
db/schema.rb
1818
db/schema.rb
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue