Sha256: c81d8fe8759323c33f2b4f56c133fa28def4f5429d22ef48dc9c1447b1e7ce9a

Contents?: true

Size: 925 Bytes

Versions: 43

Compression:

Stored size: 925 Bytes

Contents

module FlexaLib
  module Helpers
    module PaginateHelpers

    #PAGINATE_HELPERS
    def flexa_will_paginate(resource,*args)
      options = args.extract_options!
      options[:page_links] = true if options[:page_links].present?
      options[:previous_label] = content_tag("i"," ",:class=>"icon-arrow-left")
      options[:next_label] = content_tag("i"," ",:class=>"icon-arrow-right")
      new_options = options
      begin       
        flexa_wp = will_paginate resource, new_options 
      rescue
        ""
      end
      begin       
        flexa_wp["<ul>"]= "" 
      rescue
        ""
      end
      begin       
        flexa_wp["</ul>"]= ""  
      rescue
        ""
      end
      begin       
        flexa_wp['<div class="pagination">']= "" 
      rescue
        ""
      end
      begin       
        flexa_wp["</div>"]= "" 
      rescue
        ""
      end
      flexa_wp
    end


    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
flexa_lib-0.5.2 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.5.1 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.5.0 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.9 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.8 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.7 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.6 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.5 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.4 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.3 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.2 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.1 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.3.0 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.9 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.8 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.7 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.6 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.5 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.4 lib/flexa_lib/helpers/paginate_helpers.rb
flexa_lib-0.2.3 lib/flexa_lib/helpers/paginate_helpers.rb