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

Version Path
agilibox-1.9.5 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.4 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.3 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.1 app/helpers/agilibox/pagination_helper.rb
agilibox-1.9.0 app/helpers/agilibox/pagination_helper.rb
agilibox-1.8.0 app/helpers/agilibox/pagination_helper.rb
agilibox-1.7.4 app/helpers/agilibox/pagination_helper.rb
agilibox-1.7.3 app/helpers/agilibox/pagination_helper.rb
agilibox-1.7.2 app/helpers/agilibox/pagination_helper.rb
agilibox-1.7.1 app/helpers/agilibox/pagination_helper.rb
agilibox-1.7.0 app/helpers/agilibox/pagination_helper.rb
agilibox-1.6.2 app/helpers/agilibox/pagination_helper.rb
agilibox-1.6.1 app/helpers/agilibox/pagination_helper.rb
agilibox-1.6.0 app/helpers/agilibox/pagination_helper.rb
agilibox-1.5.13 app/helpers/agilibox/pagination_helper.rb
agilibox-1.5.12 app/helpers/agilibox/pagination_helper.rb
agilibox-1.5.11 app/helpers/agilibox/pagination_helper.rb