diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-01-20 09:42:13 -0800 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-20 21:27:01 -0500 |
commit | 8367e4abebcf23a6be830db57193417d3efe20b5 (patch) | |
tree | 6b72e964e04ab09b3099e122ceba4136718f7609 /app/views/kaminari/gitlab/_paginator.html.haml | |
parent | 1f9153b9a6a50251468a412653e8aa9288083f12 (diff) | |
download | gitlab-ce-8367e4abebcf23a6be830db57193417d3efe20b5.tar.gz |
Implement new UI for pagination
Diffstat (limited to 'app/views/kaminari/gitlab/_paginator.html.haml')
-rw-r--r-- | app/views/kaminari/gitlab/_paginator.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/kaminari/gitlab/_paginator.html.haml b/app/views/kaminari/gitlab/_paginator.html.haml index 2f645186921..a12c53bcfe7 100644 --- a/app/views/kaminari/gitlab/_paginator.html.haml +++ b/app/views/kaminari/gitlab/_paginator.html.haml @@ -10,13 +10,13 @@ %ul.pagination.clearfix - unless current_page.first? = first_page_tag unless num_pages < 5 # As kaminari will always show the first 5 pages - = prev_page_tag + = prev_page_tag - each_page do |page| - if page.left_outer? || page.right_outer? || page.inside_window? = page_tag page - elsif !page.was_truncated? = gap_tag + = next_page_tag - unless current_page.last? - = next_page_tag = last_page_tag unless num_pages < 5 |