Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/kaminari/_paginator.html.haml')
-rw-r--r--app/views/ci/kaminari/_paginator.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/ci/kaminari/_paginator.html.haml b/app/views/ci/kaminari/_paginator.html.haml
new file mode 100644
index 00000000000..07fdb1e08a6
--- /dev/null
+++ b/app/views/ci/kaminari/_paginator.html.haml
@@ -0,0 +1,11 @@
+= paginator.render do
+ %ul.pagination
+ = 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
+ - elsif !page.was_truncated?
+ = gap_tag
+ = next_page_tag unless current_page.last?
+ = last_page_tag unless current_page.last?