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