Skip to content

Commit

Permalink
Merge pull request #2 from twe4ked/whitespace
Browse files Browse the repository at this point in the history
Fix whitespace
  • Loading branch information
konung committed Oct 23, 2014
2 parents add96b8 + d59f9ab commit 02e6e28
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/views/kaminari/_first_page.html.haml
Expand Up @@ -9,4 +9,4 @@
- unless current_page.first?
%li{:class => "first"}
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote
2 changes: 1 addition & 1 deletion app/views/kaminari/_gap.html.haml
Expand Up @@ -8,4 +8,4 @@
%li{:class => "page gap disabled"}
%a{:href => "#", :onclick => "return false;"}
= raw(t 'views.pagination.truncate')
= raw(t 'views.pagination.truncate')
2 changes: 1 addition & 1 deletion app/views/kaminari/_last_page.html.haml
Expand Up @@ -10,4 +10,4 @@
- unless current_page.last?
%li{:class=>"last next"}
-# "next" class present for border styling in twitter bootstrap %>
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}
2 changes: 1 addition & 1 deletion app/views/kaminari/_next_page.html.haml
Expand Up @@ -9,4 +9,4 @@
- unless current_page.last?
%li{:class=>"next_page"}
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
2 changes: 1 addition & 1 deletion app/views/kaminari/_page.html.haml
Expand Up @@ -8,4 +8,4 @@
per_page: number of items to fetch per page
remote: data-remote
%li{:class=>"page #{' active' if page.current? }"}
= link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
= link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
10 changes: 5 additions & 5 deletions app/views/kaminari/_paginator.html.haml
Expand Up @@ -12,10 +12,10 @@
%ul
= first_page_tag unless current_page.first?
= prev_page_tag unless current_page.first?
- each_page do |page|
- if page.left_outer? || page.right_outer? || page.inside_window?
- each_page do |page|
- if page.left_outer? || page.right_outer? || page.inside_window?
= page_tag page
- elsif !page.was_truncated?
- elsif !page.was_truncated?
= gap_tag
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?
2 changes: 1 addition & 1 deletion app/views/kaminari/_prev_page.html.haml
Expand Up @@ -9,4 +9,4 @@
- unless current_page.first?
%li{:class=>"prev"}
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote

0 comments on commit 02e6e28

Please sign in to comment.