2018-05-07 09:53:38 -04:00
|
|
|
- link = link_to 'Runners API', help_page_path('api/runners.md')
|
|
|
|
|
|
|
|
%h3
|
|
|
|
= _('Group Runners')
|
2017-10-04 07:59:51 -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 }
|
2017-10-04 07:59:51 -04:00
|
|
|
|
2017-10-05 03:55:01 -04:00
|
|
|
- if @project.group
|
|
|
|
%hr
|
|
|
|
- if @project.group_runners_enabled?
|
2018-04-05 22:19:52 -04:00
|
|
|
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn btn-close', method: :post do
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('Disable group Runners')
|
2017-10-05 03:55:01 -04:00
|
|
|
- else
|
|
|
|
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn btn-success', method: :post do
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('Enable group Runners')
|
|
|
|
|
|
|
|
= _('for this project')
|
2017-10-05 03:55:01 -04:00
|
|
|
|
2017-10-04 07:59:51 -04:00
|
|
|
- if !@project.group
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('This project does not belong to a group and can therefore not make use of group Runners.')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
|
|
|
- elsif @group_runners.empty?
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('This group does not provide any group Runners yet.')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
2017-12-19 12:04:33 -05:00
|
|
|
- if can?(current_user, :admin_pipeline, @project.group)
|
2018-05-07 09:53:38 -04:00
|
|
|
- group_link = link_to 'Group CI/CD settings', group_settings_ci_cd_path(@project.group)
|
|
|
|
= _('Group masters can register group runners in the %{link}').html_safe % { link: group_link }
|
2017-12-19 12:04:33 -05:00
|
|
|
- else
|
2018-05-07 09:53:38 -04:00
|
|
|
= _('Ask your group master to setup a group Runner.')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
|
|
|
- else
|
2018-05-07 09:53:38 -04:00
|
|
|
%h4.underlined-title
|
|
|
|
= _('Available group Runners : %{runners}').html_safe % { runners: @group_runners.count }
|
2017-10-04 07:59:51 -04:00
|
|
|
%ul.bordered-list
|
|
|
|
= render partial: 'projects/runners/runner', collection: @group_runners, as: :runner
|