diff --git a/app/views/kaminari/_next_link.html.erb b/app/views/kaminari/_next_link.html.erb index e1d3afa..978b6ab 100644 --- a/app/views/kaminari/_next_link.html.erb +++ b/app/views/kaminari/_next_link.html.erb @@ -6,5 +6,5 @@ remote: data-remote -%> - <%= 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 %> diff --git a/app/views/kaminari/_next_link.html.haml b/app/views/kaminari/_next_link.html.haml index 2841ea1..955e4bf 100644 --- a/app/views/kaminari/_next_link.html.haml +++ b/app/views/kaminari/_next_link.html.haml @@ -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 diff --git a/app/views/kaminari/_prev_link.html.erb b/app/views/kaminari/_prev_link.html.erb index afba0ec..cffc8f1 100644 --- a/app/views/kaminari/_prev_link.html.erb +++ b/app/views/kaminari/_prev_link.html.erb @@ -6,5 +6,5 @@ remote: data-remote -%> - <%= 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 %> diff --git a/app/views/kaminari/_prev_link.html.haml b/app/views/kaminari/_prev_link.html.haml index 9559216..9a080b4 100644 --- a/app/views/kaminari/_prev_link.html.haml +++ b/app/views/kaminari/_prev_link.html.haml @@ -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