do not display pagination controls if there are no pages
parent
149f31f5fd
commit
e8e0cb98d0
|
@ -19,6 +19,7 @@
|
|||
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; } });
|
||||
}
|
||||
|
||||
- if @page_count > 1
|
||||
#pagination_navigation
|
||||
%p
|
||||
%a{ :href => '#', :onclick => "scroll_box(0); return false;", :title => 'First page' }
|
||||
|
|
Reference in New Issue