Avoid adding empty P tags

This commit is contained in:
Christoph Haas 2020-11-03 00:18:12 +01:00
parent 44fe907d59
commit 9d102d72e6

View file

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