Sha256: 474815cbcfee6e48c5a2e1a2bbfcdc17efa643f6f8b57b499f537c9504409228
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 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>" ].join(' ').html_safe content_tag(:span, description, class: 'page-current') end end end
Version data entries
6 entries across 6 versions & 1 rubygems