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&nbsp;<strong>#{pagination_current_page_for(set)}</strong>&nbsp;of&nbsp;<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

Version Path
actionset-0.8.0 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.7.0 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.6.0 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.5.4 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.5.3 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.5.2 lib/action_set/helpers/pagination/current_page_description_for_helper.rb
actionset-0.5.1 lib/action_set/helpers/pagination/current_page_description_for_helper.rb