1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

refs #30 remove 'disabled' class

This commit is contained in:
Akira Matsuda 2011-04-16 21:46:52 +09:00
parent 17760e718f
commit 2cc02d89fa
8 changed files with 8 additions and 8 deletions

View file

@ -6,6 +6,6 @@
per_page: number of items to fetch per page
remote: data-remote
-%>
<span class="first<%= ' disabled' if current_page.first? %>">
<span class="first">
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
</span>

View file

@ -5,5 +5,5 @@
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%span{:class => "first#{' disabled' if current_page.first?}"}
%span.first
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote

View file

@ -6,6 +6,6 @@
per_page: number of items to fetch per page
remote: data-remote
-%>
<span class="last<%= ' disabled' if current_page.last? %>">
<span class="last">
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
</span>

View file

@ -5,5 +5,5 @@
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%span{:class => "last#{' disabled' if current_page.last?}"}
%span.last
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}

View file

@ -6,6 +6,6 @@
per_page: number of items to fetch per page
remote: data-remote
-%>
<span class="next<%= ' disabled' if current_page.last? %>">
<span class="next">
<%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
</span>

View file

@ -5,5 +5,5 @@
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%span{:class => "next#{' disabled' if current_page.last?}"}
%span.next
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote

View file

@ -6,6 +6,6 @@
per_page: number of items to fetch per page
remote: data-remote
-%>
<span class="prev<%= ' disabled' if current_page.first? %>">
<span class="prev">
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
</span>

View file

@ -5,5 +5,5 @@
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%span{:class => "prev#{' disabled' if current_page.first?}"}
%span.prev
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote