Sha256: 654f097b1a671d1510b85de1deca5ec75d3030a7b0d69b1ec2faf16cd5ea0b29
Contents?: true
Size: 976 Bytes
Versions: 3
Compression:
Stored size: 976 Bytes
Contents
# frozen_string_literal: true require_relative './first_page_link_for_helper' require_relative './prev_page_link_for_helper' require_relative './current_page_description_for_helper' require_relative './next_page_link_for_helper' require_relative './last_page_link_for_helper' module Pagination module LinksForHelper include Pagination::FirstPageLinkForHelper include Pagination::PrevPageLinkForHelper include Pagination::CurrentPageDescriptionForHelper include Pagination::NextPageLinkForHelper include Pagination::LastPageLinkForHelper def pagination_links_for(set) content_tag(:nav, class: 'pagination', 'aria-label': 'Page navigation') do safe_join([ pagination_first_page_link_for(set), pagination_prev_page_link_for(set), pagination_current_page_description_for(set), pagination_next_page_link_for(set), pagination_last_page_link_for(set) ]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems