Module: Pagination::CurrentPageDescriptionForHelper

Includes:
CurrentPageForHelper, TotalPagesForHelper
Included in:
LinksForHelper
Defined in:
lib/action_set/helpers/pagination/current_page_description_for_helper.rb

Instance Method Summary collapse

Methods included from TotalPagesForHelper

#pagination_total_pages_for

Methods included from PageSizeForHelper

#pagination_page_size_for

Methods included from RecordSizeForHelper

#pagination_record_size_for

Methods included from CurrentPageForHelper

#pagination_current_page_for

Instance Method Details

#pagination_current_page_description_for(set) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/action_set/helpers/pagination/current_page_description_for_helper.rb', line 11

def pagination_current_page_description_for(set)
  description = [
    'Page',
    "<strong>#{pagination_current_page_for(set)}</strong>",
    'of',
    "<strong>#{pagination_total_pages_for(set)}</strong>"
  ].join('&nbsp;').html_safe

  (:span,
              description,
              class: 'page-current')
end