diff options
author | Kushal Pandya <kushal@gitlab.com> | 2016-12-22 16:30:09 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2016-12-31 11:43:08 +0530 |
commit | 7b1944f96c6513486cc4a7be30f912e2f7a1110b (patch) | |
tree | b9ad52981d16422f01b4c49e8126ea7fe08c9020 /app/views/kaminari | |
parent | ef3744d0cd644d75b7fa573777baf29950172623 (diff) | |
download | gitlab-ce-7b1944f96c6513486cc4a7be30f912e2f7a1110b.tar.gz |
HAMLLint: Fix `ClassAttributeWithStaticValue` offences
Diffstat (limited to 'app/views/kaminari')
-rw-r--r-- | app/views/kaminari/gitlab/_next_page.html.haml | 4 | ||||
-rw-r--r-- | app/views/kaminari/gitlab/_prev_page.html.haml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/kaminari/gitlab/_next_page.html.haml b/app/views/kaminari/gitlab/_next_page.html.haml index 125f09777ba..c93dc7a50e8 100644 --- a/app/views/kaminari/gitlab/_next_page.html.haml +++ b/app/views/kaminari/gitlab/_next_page.html.haml @@ -6,8 +6,8 @@ -# per_page: number of items to fetch per page -# remote: data-remote - if current_page.last? - %li{ class: "next disabled" } + %li.next.disabled %span= raw(t 'views.pagination.next') - else - %li{ class: "next" } + %li.next = link_to raw(t 'views.pagination.next'), url, rel: 'next', remote: remote diff --git a/app/views/kaminari/gitlab/_prev_page.html.haml b/app/views/kaminari/gitlab/_prev_page.html.haml index 7edf10498a8..b7c6caf7ff4 100644 --- a/app/views/kaminari/gitlab/_prev_page.html.haml +++ b/app/views/kaminari/gitlab/_prev_page.html.haml @@ -6,8 +6,8 @@ -# per_page: number of items to fetch per page -# remote: data-remote - if current_page.first? - %li{ class: "prev disabled" } + %li.prev.disabled %span= raw(t 'views.pagination.previous') - else - %li{ class: "prev" } + %li.prev = link_to raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote |