Paginator can handle both screenshots and packages now

This commit is contained in:
Christoph Haas 2020-10-25 02:20:49 +02:00
parent 109354dbf6
commit f323f94582
3 changed files with 11 additions and 6 deletions

View file

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