diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-10 15:23:23 +1000 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-07 08:54:07 +0200 |
commit | 5ad7b73ec5f5510dac3f551849c32ba4fba14739 (patch) | |
tree | c7d1e067d09e1e130f5792a78bdb89fd65ff0f61 | |
parent | 91f358942e8a02322423b7eb664985baf78510eb (diff) | |
download | gitlab-ce-5ad7b73ec5f5510dac3f551849c32ba4fba14739.tar.gz |
Ensure the group runner setup steps are visible even after runners have been added (#10244)
-rw-r--r-- | app/views/groups/runners/_group_runners.html.haml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/groups/runners/_group_runners.html.haml b/app/views/groups/runners/_group_runners.html.haml index ef87579ee16..d1616b537f9 100644 --- a/app/views/groups/runners/_group_runners.html.haml +++ b/app/views/groups/runners/_group_runners.html.haml @@ -4,14 +4,12 @@ GitLab Group Runners can execute code for all the projects in this group. They can be managed using the #{link_to 'Runners API', help_page_path('api/runners.md')}. -- if @group.runners.empty? - This group does not provide any group Runners yet. +- if can?(current_user, :admin_pipeline, @group) + = render partial: 'ci/runner/how_to_setup_runner', + locals: { registration_token: @group.runners_token, type: 'group' } - - if can?(current_user, :admin_pipeline, @group) - = render partial: 'ci/runner/how_to_setup_runner', - locals: { registration_token: @group.runners_token, type: 'group' } - - else - Ask your group master to setup a group Runner. +- if @group.runners.empty? + %h4.underlined-title This group does not provide any group Runners yet. - else %h4.underlined-title Available group Runners : #{@group.runners.count} |