mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
11 lines
596 B
Text
11 lines
596 B
Text
-# Link to the "First" page
|
|
-# available local variables
|
|
-# url: url to the first page
|
|
-# current_page: a page object for the currently displayed page
|
|
-# total_pages: total number of pages
|
|
-# per_page: number of items to fetch per page
|
|
-# remote: data-remote
|
|
%span.first
|
|
- param_name = current_page.instance_variable_get("@options")[:param_name] || Kaminari.config.param_name
|
|
- urlik = url_for( params.merge(param_name => 1, :only_path => true))
|
|
= link_to_unless current_page.first?, t('views.pagination.first').html_safe, urlik, :remote => remote
|