From 9d1e520da21f33decfeab5028652de19fa1f0288 Mon Sep 17 00:00:00 2001 From: Jiyu Omine Date: Sat, 8 Dec 2018 17:19:01 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=E3=83=9A=E3=83=BC=E3=82=B8=E3=83=8D?= =?UTF-8?q?=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8C=E6=AD=BB=E3=82=93?= =?UTF-8?q?=E3=81=A7=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/kaminari/_paginator.html.slim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/kaminari/_paginator.html.slim b/app/views/kaminari/_paginator.html.slim index 8ad1f97..4b111bc 100644 --- a/app/views/kaminari/_paginator.html.slim +++ b/app/views/kaminari/_paginator.html.slim @@ -1,11 +1,11 @@ -= paginator.render do +== paginator.render do ul.pagination - = first_page_tag unless current_page.first? - = prev_page_tag unless current_page.first? + == first_page_tag unless current_page.first? + == prev_page_tag unless current_page.first? - each_page do |page| - if page.left_outer? || page.right_outer? || page.inside_window? - = page_tag page + == page_tag page - elsif !page.was_truncated? - = gap_tag - = next_page_tag unless current_page.last? - = last_page_tag unless current_page.last? + == gap_tag + == next_page_tag unless current_page.last? + == last_page_tag unless current_page.last?