Sha256: 3fce4805fe13294a26695d1de3aa2c94e8eee03bc9d8c04bebbe1f3308dec6fa
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
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, **attributes) content_tag(:nav, **attributes.merge( 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
7 entries across 7 versions & 1 rubygems