summaryrefslogtreecommitdiff
path: root/app/views/groups/runners/_group_runners.html.haml
blob: 554240b7aefc4067f8d12af8451646577fe59ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- link = link_to _('Runners API'), help_page_path('api/runners.md')

%h3
  = _('Group Runners')

.bs-callout.bs-callout-warning
  = _('GitLab Group Runners can execute code for all the projects in this group.')
  = _('They can be managed using the %{link}.').html_safe % { link: link }

-# Proper policies should be implemented per
-# https://gitlab.com/gitlab-org/gitlab-foss/issues/45894
- if can?(current_user, :admin_pipeline, @group)
  = render partial: 'ci/runner/how_to_setup_runner_automatically',
           locals: { type: 'group',
                     clusters_path: group_clusters_path(@group) }
  %hr
  = render partial: 'ci/runner/how_to_setup_runner',
           locals: { registration_token: @group.runners_token,
                     type: 'group',
                     reset_token_url: reset_registration_token_group_settings_ci_cd_path }