diff --git a/app/views/home/_pagination.html.haml b/app/views/home/_pagination.html.haml
index 2413718..18266cb 100644
--- a/app/views/home/_pagination.html.haml
+++ b/app/views/home/_pagination.html.haml
@@ -19,14 +19,15 @@
new Ajax.Updater('#{@pagination_block}', '#{@base_pagination_url}#{@base_pagination_url =~ /\?/ ? '&' : '?'}page=' + page, { method: 'get', onComplete: function(){ new Effect.Appear($('inner_#{@pagination_block}')); }, onSuccess: function(){ $('pagenum').innerHTML = parseInt(page) + 1; } });
}
-#pagination_navigation
- %p
- %a{ :href => '#', :onclick => "scroll_box(0); return false;", :title => 'First page' }
- %img{ :src => '/images/go-first.png' }
- %a{ :href => '#', :onclick => "scroll_box(page - 1); return false;", :title => 'Previous page' }
- %img{ :src => '/images/go-previous.png' }
- == #{@page + 1} / #{@page_count}
- %a{ :href => '#', :onclick => "scroll_box(page + 1); return false;", :title => 'Next page' }
- %img{ :src => '/images/go-next.png' }
- %a{ :href => '#', :onclick => "scroll_box(page_count - 1); return false;", :title => 'Next page' }
- %img{ :src => '/images/go-last.png' }
\ No newline at end of file
+- if @page_count > 1
+ #pagination_navigation
+ %p
+ %a{ :href => '#', :onclick => "scroll_box(0); return false;", :title => 'First page' }
+ %img{ :src => '/images/go-first.png' }
+ %a{ :href => '#', :onclick => "scroll_box(page - 1); return false;", :title => 'Previous page' }
+ %img{ :src => '/images/go-previous.png' }
+ == #{@page + 1} / #{@page_count}
+ %a{ :href => '#', :onclick => "scroll_box(page + 1); return false;", :title => 'Next page' }
+ %img{ :src => '/images/go-next.png' }
+ %a{ :href => '#', :onclick => "scroll_box(page_count - 1); return false;", :title => 'Next page' }
+ %img{ :src => '/images/go-last.png' }
\ No newline at end of file