Commit 5ad7b73e authored by Dylan Griffith's avatar Dylan Griffith

Ensure the group runner setup steps are visible even after runners have been added (#10244)

parent 91f35894
...@@ -4,14 +4,12 @@ ...@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment