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 CurrentPageForHelper

#pagination_current_page_for

Instance Method Details

#pagination_current_page_description_for(set) ⇒ Object



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

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

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