- pager = paginate(collection) - if pager.has_multiple_pages? #pager - if pager.has_first_page? %a.first{ :href => pager.first_page_path } = t('global.first') - if pager.has_previous_page? %a.previous{ :href => pager.previous_page_path } = t('global.previous') - if pager.navigation.has_less_pages? %span.ellipsis ... - for page in pager.navigation.pages - if pager.is_current_page? page %span.page.current = page - else %a.page{ :href => pager.page_path(page) } = page - if pager.navigation.has_more_pages? %span.ellipsis ... - if pager.has_next_page? %a.next{ :href => pager.next_page_path } = t('global.next') - if pager.has_last_page? %a.last{ :href => pager.last_page_path } = t('global.last')