summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorKatarzyna Kobierska <kkobierska@gmail.com>2016-08-10 13:07:03 +0200
committerKatarzyna Kobierska <kkobierska@gmail.com>2016-09-13 09:05:07 +0200
commite81ed371a10012c2d09f67b3523c3ba3fd17c7bd (patch)
tree4b770f1d365e07b389b6f54d57015f14f4890bcc /app/views/admin
parent516b2a12758aa1ddd947c32a14d0088df193402c (diff)
downloadgitlab-ce-e81ed371a10012c2d09f67b3523c3ba3fd17c7bd.tar.gz
Change the way paths are generated
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/builds/index.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/admin/builds/index.html.haml b/app/views/admin/builds/index.html.haml
index f0599bd3004..1bf4cb4d124 100644
--- a/app/views/admin/builds/index.html.haml
+++ b/app/views/admin/builds/index.html.haml
@@ -4,9 +4,8 @@
%div{ class: container_class }
.top-area
- - scopes = [:all, :pending, :running, :finished]
- - paths = scopes.zip(scopes.map { |scope| admin_builds_path(scope: scope) }).to_h
- = render "projects/builds/builds", paths: paths
+ - build_path = ->(scope) { admin_builds_path(scope: scope) }
+ = render "projects/builds/tabs", build_path: build_path
.nav-controls
- if @all_builds.running_or_pending.any?