From 9d102d72e6ff6f6fa7e31ab737bd243b668595a0 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 3 Nov 2020 00:18:12 +0100 Subject: [PATCH] Avoid adding empty P tags --- app/views/packages/_paginator.slim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/packages/_paginator.slim b/app/views/packages/_paginator.slim index ebf2cf9..fa342b9 100644 --- a/app/views/packages/_paginator.slim +++ b/app/views/packages/_paginator.slim @@ -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: ''