Using own custom Foundation 6 paginator

This commit is contained in:
Christoph Haas 2016-03-03 17:11:54 +01:00
parent 7e7d2e6c0b
commit 28e4f8e705
6 changed files with 67 additions and 13 deletions

View file

@ -1,8 +1,8 @@
- if @packages.length>0
// Use different pagination navigators depending on the screen width
div.show-for-large-up
=will_paginate @packages, renderer: FoundationPagination::Rails, :inner_window => 3
div.show-for-large
=will_paginate @packages, :renderer => FoundationPaginationRenderer, :inner_window => 3
div.show-for-medium-only
=will_paginate @packages, renderer: FoundationPagination::Rails, :inner_window => 1
=will_paginate @packages, :renderer => FoundationPaginationRenderer, :inner_window => 1
div.show-for-small-only
=will_paginate @packages, renderer: FoundationPagination::Rails, :page_links => false
=will_paginate @packages, :renderer => FoundationPaginationRenderer, :page_links => false