summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-07 14:35:54 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-07 14:35:54 +0200
commitc0b79a751c8cbf676900956b14b70edd5dca5010 (patch)
treeb569261dfbde793cb944b025b1511351437b18e9 /app
parent6f6097713ca593c7a7177df0f06420b124d478aa (diff)
downloadgitlab-ce-c0b79a751c8cbf676900956b14b70edd5dca5010.tar.gz
Move no runners alert to project ci settings
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/ci/projects/_info.html.haml2
-rw-r--r--app/views/projects/ci_settings/_no_runners.html.haml (renamed from app/views/ci/projects/_no_runners.html.haml)2
-rw-r--r--app/views/projects/ci_settings/edit.html.haml3
3 files changed, 4 insertions, 3 deletions
diff --git a/app/views/ci/projects/_info.html.haml b/app/views/ci/projects/_info.html.haml
index 1888e1bde93..e69de29bb2d 100644
--- a/app/views/ci/projects/_info.html.haml
+++ b/app/views/ci/projects/_info.html.haml
@@ -1,2 +0,0 @@
-- if no_runners_for_project?(@project)
- = render 'no_runners'
diff --git a/app/views/ci/projects/_no_runners.html.haml b/app/views/projects/ci_settings/_no_runners.html.haml
index c0a296fb17d..33038c52978 100644
--- a/app/views/ci/projects/_no_runners.html.haml
+++ b/app/views/projects/ci_settings/_no_runners.html.haml
@@ -4,5 +4,5 @@
%br
You can add Specific runner for this project on Runners page
- - if current_user.is_admin
+ - if current_user.admin
or add Shared runner for whole application in admin are.
diff --git a/app/views/projects/ci_settings/edit.html.haml b/app/views/projects/ci_settings/edit.html.haml
index e9040fe4337..eedf484bf00 100644
--- a/app/views/projects/ci_settings/edit.html.haml
+++ b/app/views/projects/ci_settings/edit.html.haml
@@ -6,6 +6,9 @@
yaml file which is based on your old jobs.
Put this file to the root of your project and name it .gitlab-ci.yml
+- if no_runners_for_project?(@ci_project)
+ = render 'no_runners'
+
= render 'form'
- if @ci_project.generated_yaml_config