Module: Pagination::LastPageLinkForHelper
Instance Method Summary
collapse
#pagination_path_for
#current_params
#pagination_total_pages_for
#pagination_page_size_for
#pagination_record_size_for
#pagination_current_page_for
Instance Method Details
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/action_set/helpers/pagination/last_page_link_for_helper.rb', line 13
def (set)
current_page = (set)
total_pages = (set)
if current_page != total_pages && current_page <= total_pages
link_to('Last »', (total_pages), class: 'page-link page-last')
else
content_tag(:span, 'Last »', class: 'page-link page-last disabled')
end
end
|