Sha256: 573afd864a2c8dedc9e984501e000ef40e2e85bcb68c698ac7f3d2a0491b9b0d
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 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) 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
4 entries across 4 versions & 1 rubygems