Ensure the group runner setup steps are visible even after runners have been added (#10244)
This commit is contained in:
parent
91f358942e
commit
5ad7b73ec5
1 changed files with 5 additions and 7 deletions
|
@ -4,14 +4,12 @@
|
||||||
GitLab Group Runners can execute code for all the projects in this group.
|
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')}.
|
They can be managed using the #{link_to 'Runners API', help_page_path('api/runners.md')}.
|
||||||
|
|
||||||
- if @group.runners.empty?
|
- if can?(current_user, :admin_pipeline, @group)
|
||||||
This group does not provide any group Runners yet.
|
= render partial: 'ci/runner/how_to_setup_runner',
|
||||||
|
locals: { registration_token: @group.runners_token, type: 'group' }
|
||||||
|
|
||||||
- if can?(current_user, :admin_pipeline, @group)
|
- if @group.runners.empty?
|
||||||
= render partial: 'ci/runner/how_to_setup_runner',
|
%h4.underlined-title This group does not provide any group Runners yet.
|
||||||
locals: { registration_token: @group.runners_token, type: 'group' }
|
|
||||||
- else
|
|
||||||
Ask your group master to setup a group Runner.
|
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h4.underlined-title Available group Runners : #{@group.runners.count}
|
%h4.underlined-title Available group Runners : #{@group.runners.count}
|
||||||
|
|
Loading…
Reference in a new issue