1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
- link = link_to _('Runner API'), help_page_path('api/runners.md')
%h4
= _('Group runners')
.bs-callout.bs-callout-warning
= _('These runners are shared across projects in this group.')
%br
%br
= _('Group runners can be managed with the %{link}.').html_safe % { link: link }
- if @project.group
%br
%br
- if @project.group_runners_enabled?
= link_button_to toggle_group_runners_project_runners_path(@project), method: :post do
= _('Disable group runners')
- else
= link_button_to toggle_group_runners_project_runners_path(@project), method: :post, variant: :confirm, category: :secondary do
= _('Enable group runners')
= _('for this project')
- if !@project.group
= _('This project does not belong to a group and cannot make use of group runners.')
- elsif @group_runners.empty?
= _('This group does not have any group runners yet.')
- if can?(current_user, :admin_group_runners, @project.group)
- group_link_start = "<a href='#{group_runners_path(@project.group)}'>".html_safe
- group_link_end = '</a>'.html_safe
= s_("Runners|To register them, go to the %{link_start}group's Runners page%{link_end}.").html_safe % { link_start: group_link_start, link_end: group_link_end }
- else
= _('Ask your group owner to set up a group runner.')
- else
%div{ data: { testid: 'group-runners' } }
%h5.gl-mt-6.gl-mb-0
= _('Available group runners: %{runners}') % { runners: @group_runners_count }
%ul.bordered-list
= render partial: 'projects/runners/runner', collection: @group_runners, as: :runner
= paginate @group_runners, theme: "gitlab", param_name: "group_runners_page", params: { expand_runners: true, anchor: 'js-runners-settings' }
|