mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
no need for link_to_if
This commit is contained in:
parent
1a15d91cbd
commit
1a06de256d
4 changed files with 4 additions and 4 deletions
|
@ -6,5 +6,5 @@
|
|||
remote: data-remote
|
||||
-%>
|
||||
<span class="next">
|
||||
<%= link_to_if (current_page < num_pages), raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote %>
|
||||
<%= link_to raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote %>
|
||||
</span>
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
per_page: number of items to fetch per page
|
||||
remote: data-remote
|
||||
%span.next
|
||||
= link_to_if (current_page < num_pages), raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote
|
||||
= link_to raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
remote: data-remote
|
||||
-%>
|
||||
<span class="prev">
|
||||
<%= link_to_if (current_page > 1), raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>
|
||||
<%= link_to raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>
|
||||
</span>
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
per_page: number of items to fetch per page
|
||||
remote: data-remote
|
||||
%span.prev
|
||||
= link_to_if (current_page > 1), raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote
|
||||
= link_to raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote
|
||||
|
|
Loading…
Reference in a new issue