summaryrefslogtreecommitdiff
path: root/app/views/kaminari/gitlab/_page.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/kaminari/gitlab/_page.html.haml')
-rw-r--r--app/views/kaminari/gitlab/_page.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/kaminari/gitlab/_page.html.haml b/app/views/kaminari/gitlab/_page.html.haml
index cefe0066a8f..5c5be03a7cd 100644
--- a/app/views/kaminari/gitlab/_page.html.haml
+++ b/app/views/kaminari/gitlab/_page.html.haml
@@ -6,5 +6,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%li{ class: "page#{' active' if page.current?}#{' sibling' if page.next? || page.prev?}" }
+%li.page{ class: [active_when(page.current?), ('sibling' if page.next? || page.prev?)] }
= link_to page, url, { remote: remote, rel: page.next? ? 'next' : page.prev? ? 'prev' : nil }