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

Version Path
agilibox-1.9.18 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.17 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.16 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.15 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.14 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.13 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.12 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.11 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.10 app/helpers/agilibox/pagination_helper.rb