diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 13:46:29 +0300 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-13 10:05:07 +0300 |
commit | 27c3a87194a3a29c06cf8a2dd489d28ca0b552ab (patch) | |
tree | e0c3ca5dc48f654e71d5f57f58d8b83f70054a32 | |
parent | b1016a355eded528c9f9ecb15861d084a6673823 (diff) |
Moved build tabs partial to shared
-rw-r--r-- | app/views/admin/builds/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/builds/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/shared/_builds_tabs.html.haml (renamed from app/views/projects/builds/_tabs.html.haml) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/builds/index.html.haml b/app/views/admin/builds/index.html.haml index a86e054c8d4..7dba77d2dee 100644 --- a/app/views/admin/builds/index.html.haml +++ b/app/views/admin/builds/index.html.haml @@ -5,7 +5,7 @@ .top-area - build_path = ->(scope) { admin_builds_path(scope: scope) } - = render "projects/builds/tabs", build_path: build_path, all_builds: @all_builds, scope: @scope + = render "shared/builds_tabs", build_path: build_path, all_builds: @all_builds, scope: @scope .nav-controls - if @all_builds.running_or_pending.any? diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml index cbcaad9e6b7..f1b3fd1bcea 100644 --- a/app/views/projects/builds/index.html.haml +++ b/app/views/projects/builds/index.html.haml @@ -5,7 +5,7 @@ %div{ class: container_class } .top-area - build_path = ->(scope) { project_builds_path(@project, scope: scope) } - = render "tabs", build_path: build_path, all_builds: @all_builds, scope: @scope + = render "shared/builds_tabs", build_path: build_path, all_builds: @all_builds, scope: @scope .nav-controls - if can?(current_user, :update_build, @project) diff --git a/app/views/projects/builds/_tabs.html.haml b/app/views/shared/_builds_tabs.html.haml index 9c3173f7a1a..9c3173f7a1a 100644 --- a/app/views/projects/builds/_tabs.html.haml +++ b/app/views/shared/_builds_tabs.html.haml |