From d59f9ab02b9e067e73182f072adcd81fb3bc49bb Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Wed, 17 Oct 2012 20:08:22 +1000 Subject: [PATCH] Fix whitespace. --- app/views/kaminari/_first_page.html.haml | 2 +- app/views/kaminari/_gap.html.haml | 2 +- app/views/kaminari/_last_page.html.haml | 2 +- app/views/kaminari/_next_page.html.haml | 2 +- app/views/kaminari/_page.html.haml | 2 +- app/views/kaminari/_paginator.html.haml | 10 +++++----- app/views/kaminari/_prev_page.html.haml | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/kaminari/_first_page.html.haml b/app/views/kaminari/_first_page.html.haml index 90b48d1..341e000 100644 --- a/app/views/kaminari/_first_page.html.haml +++ b/app/views/kaminari/_first_page.html.haml @@ -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 \ No newline at end of file + = link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote diff --git a/app/views/kaminari/_gap.html.haml b/app/views/kaminari/_gap.html.haml index 824ae29..ff0cc1f 100644 --- a/app/views/kaminari/_gap.html.haml +++ b/app/views/kaminari/_gap.html.haml @@ -8,4 +8,4 @@ %li{:class => "page gap disabled"} %a{:href => "#", :onclick => "return false;"} - = raw(t 'views.pagination.truncate') \ No newline at end of file + = raw(t 'views.pagination.truncate') diff --git a/app/views/kaminari/_last_page.html.haml b/app/views/kaminari/_last_page.html.haml index b185e96..39d7deb 100644 --- a/app/views/kaminari/_last_page.html.haml +++ b/app/views/kaminari/_last_page.html.haml @@ -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} \ No newline at end of file + = link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} diff --git a/app/views/kaminari/_next_page.html.haml b/app/views/kaminari/_next_page.html.haml index d3d749c..e58d978 100644 --- a/app/views/kaminari/_next_page.html.haml +++ b/app/views/kaminari/_next_page.html.haml @@ -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 \ No newline at end of file + = link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote diff --git a/app/views/kaminari/_page.html.haml b/app/views/kaminari/_page.html.haml index 6df34eb..ab16b4e 100644 --- a/app/views/kaminari/_page.html.haml +++ b/app/views/kaminari/_page.html.haml @@ -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} \ No newline at end of file + = link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} diff --git a/app/views/kaminari/_paginator.html.haml b/app/views/kaminari/_paginator.html.haml index 748b2f1..96a46d1 100644 --- a/app/views/kaminari/_paginator.html.haml +++ b/app/views/kaminari/_paginator.html.haml @@ -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? \ No newline at end of file + = next_page_tag unless current_page.last? + = last_page_tag unless current_page.last? diff --git a/app/views/kaminari/_prev_page.html.haml b/app/views/kaminari/_prev_page.html.haml index 662a209..e260fc3 100644 --- a/app/views/kaminari/_prev_page.html.haml +++ b/app/views/kaminari/_prev_page.html.haml @@ -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 \ No newline at end of file + = link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote