Sha256: bd20e517c4374a048d66cc7733320b2e71f5fa90943b1d868a95d321c21b6099
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true require_relative './current_page_for_helper' require_relative './total_pages_for_helper' module Pagination module CurrentPageDescriptionForHelper include Pagination::CurrentPageForHelper include Pagination::TotalPagesForHelper 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 end end
Version data entries
7 entries across 7 versions & 1 rubygems