module Pagination::NextPageLinkForHelper
Public Instance Methods
pagination_next_page_link_for(set)
click to toggle source
# File lib/action_set/helpers/pagination/next_page_link_for_helper.rb, line 13 def pagination_next_page_link_for(set) current_page = pagination_current_page_for(set) total_pages = pagination_total_pages_for(set) if current_page != total_pages && current_page <= total_pages link_to('Next ›', pagination_path_for(current_page + 1), rel: 'next', class: 'page-link page-next') else content_tag(:span, 'Next ›', class: 'page-link page-next disabled') end end