2018-05-09 03:37:51 -04:00
|
|
|
- link = link_to _('Runners API'), help_page_path('api/runners.md')
|
2018-05-07 09:53:38 -04:00
|
|
|
|
|
|
|
%h3
|
|
|
|
= _('Group Runners')
|
2018-04-03 21:12:26 -04:00
|
|
|
|
|
|
|
.bs-callout.bs-callout-warning
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('GitLab Group Runners can execute code for all the projects in this group.')
|
|
|
|
= _('They can be managed using the %{link}.').html_safe % { link: link }
|
2018-04-03 21:12:26 -04:00
|
|
|
|
2018-05-07 02:56:59 -04:00
|
|
|
-# Proper policies should be implemented per
|
|
|
|
-# https://gitlab.com/gitlab-org/gitlab-ce/issues/45894
|
2018-04-10 01:23:23 -04:00
|
|
|
- if can?(current_user, :admin_pipeline, @group)
|
|
|
|
= render partial: 'ci/runner/how_to_setup_runner',
|
2018-09-10 17:57:03 -04:00
|
|
|
locals: { registration_token: @group.runners_token,
|
|
|
|
type: 'group',
|
|
|
|
reset_token_url: reset_registration_token_group_settings_ci_cd_path }
|
2018-04-03 21:12:26 -04:00
|
|
|
|
2018-04-10 01:23:23 -04:00
|
|
|
- if @group.runners.empty?
|
2018-05-07 09:53:38 -04:00
|
|
|
%h4.underlined-title
|
|
|
|
= _('This group does not provide any group Runners yet.')
|
2018-04-03 21:12:26 -04:00
|
|
|
|
|
|
|
- else
|
2018-05-07 09:53:38 -04:00
|
|
|
%h4.underlined-title
|
2019-01-09 17:11:18 -05:00
|
|
|
= _('Available group Runners: %{runners}').html_safe % { runners: @group.runners.count }
|
2018-04-03 21:12:26 -04:00
|
|
|
%ul.bordered-list
|
|
|
|
= render partial: 'groups/runners/runner', collection: @group.runners, as: :runner
|