diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-24 14:07:28 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-24 14:07:28 -0500 |
commit | 35ea254c92de7fa315474bfc36c3e4a788dd8b41 (patch) | |
tree | 08b33fd8bd2fdeca2793df90fce5dc53c13bc7e2 /app/views/kaminari | |
parent | 5049cbdbd208fe01e466349fb2b4d3c9292071b2 (diff) | |
download | gitlab-ce-35ea254c92de7fa315474bfc36c3e4a788dd8b41.tar.gz |
Add data-test=page for testing pagination pages in admin abuse reports spec
Diffstat (limited to 'app/views/kaminari')
-rw-r--r-- | app/views/kaminari/gitlab/_page.html.haml | 2 |
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 8edf26295e1..b3ed43df1be 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.page-item{ class: [active_when(page.current?), ('sibling' if page.next? || page.prev?)] } +%li.page-item{ class: [active_when(page.current?), ('sibling' if page.next? || page.prev?)], data: { test: 'page' } } = link_to page, url, { remote: remote, rel: page.next? ? 'next' : page.prev? ? 'prev' : nil, class: 'page-link' } |