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
Methods included from PageSizeForHelper
Methods included from CurrentPageForHelper
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 <strong>#{pagination_current_page_for(set)}</strong> of <strong>#{pagination_total_pages_for(set)}</strong>".html_safe content_tag(:span, description, class: 'page-current') end |