app/helpers/agilibox/pagination_helper.rb in agilibox-1.5.10 vs app/helpers/agilibox/pagination_helper.rb in agilibox-1.5.11
- old
+ new
@@ -1,6 +1,14 @@
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