Sha256: ade54e3f65e3073df45de5a68cbce8196c721a5d0802d48ad8d23df973b1a769
Contents?: true
Size: 427 Bytes
Versions: 17
Compression:
Stored size: 427 Bytes
Contents
module Agilibox::PaginationHelper def paginate(objects, options = {}) options = {theme: "twitter-bootstrap-3"}.merge(options) super(objects, options).gsub(/>(\s+)</, "><").html_safe end def pagination_infos(collection) content_tag(:p, class: "pagination-infos") { page_entries_info(collection) } end def pagination_and_infos(collection) paginate(collection) + pagination_infos(collection) end end
Version data entries
17 entries across 17 versions & 1 rubygems