Sha256: 012e3de971b39f17aa9310cb8e25decdea4757beb928b1ec9fa0db0c852b58e7
Contents?: true
Size: 419 Bytes
Versions: 9
Compression:
Stored size: 419 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
9 entries across 9 versions & 1 rubygems