%e_pages = ActionController::Pagination::Paginator.new( self, elt.elts_count, PAGE_ELT_LENGTH, @params['page']) elts = Elt.find(:all, :conditions => "parent_id = '#{elt.id}'", :order => 'position, elts.created_on DESC', :include => :person, :limit => e_pages.items_per_page, :offset => e_pages.current.offset) %> <% if e_pages.length > 1 %>