1
0
Fork 0
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:
Akira Matsuda 2011-02-09 12:56:35 +09:00
parent 1a15d91cbd
commit 1a06de256d
4 changed files with 4 additions and 4 deletions

View file

@ -6,5 +6,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="next"> <span class="next">
<%= link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote %> <%= link_to raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote %>
</span> </span>

View file

@ -5,4 +5,4 @@
per_page: number of items to fetch per page per_page: number of items to fetch per page
remote: data-remote remote: data-remote
%span.next %span.next
= link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote = link_to raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote

View file

@ -6,5 +6,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="prev"> <span class="prev">
<%= link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %> <%= link_to raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>
</span> </span>

View file

@ -5,4 +5,4 @@
per_page: number of items to fetch per page per_page: number of items to fetch per page
remote: data-remote remote: data-remote
%span.prev %span.prev
= link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote = link_to raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote