-# The container tag
-# available local variables
-# current_page: a page object for the currently displayed page
-# num_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-# paginator: the paginator that renders the pagination tags inside
= paginator.render do
- exclude ||= []
%nav
= first_page_tag unless current_page.first? || exclude.include?(:first)
= prev_page_tag unless current_page.first?
- each_page do |page|
= page_tag page
- elsif !page.was_truncated?
= gap_tag unless exclude.include?(:gap)
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last? || exclude.include?(:last)
- unless exclude.include?(:per_page)
.col-md-6
%select{name: 'per_page', class: 'form-control'}
- [25, 50, 100, 500].each do |num|
%option{:selected => (per_page==num)}= num
.col-md-6
per page