2021-01-12 16:10:47 -05:00
|
|
|
- link = link_to _('Runner API'), help_page_path('api/runners.md')
|
2018-05-07 09:53:38 -04:00
|
|
|
|
2021-01-12 16:10:47 -05:00
|
|
|
%h4
|
|
|
|
= _('Group runners')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
|
|
|
.bs-callout.bs-callout-warning
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('These runners are shared across projects in this group.')
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
= _('Group runners can be managed with 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
|
2021-01-12 16:10:47 -05:00
|
|
|
%br
|
|
|
|
%br
|
2017-10-05 03:55:01 -04:00
|
|
|
- if @project.group_runners_enabled?
|
2021-04-27 11:09:52 -04:00
|
|
|
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn gl-button btn-default', method: :post do
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('Disable group runners')
|
2017-10-05 03:55:01 -04:00
|
|
|
- else
|
2021-03-18 17:09:00 -04:00
|
|
|
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn gl-button btn-confirm-secondary', method: :post do
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('Enable group runners')
|
2018-05-07 09:53:38 -04:00
|
|
|
|
|
|
|
= _('for this project')
|
2017-10-05 03:55:01 -04:00
|
|
|
|
2017-10-04 07:59:51 -04:00
|
|
|
- if !@project.group
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('This project does not belong to a group and cannot make use of group runners.')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
|
|
|
- elsif @group_runners.empty?
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('This group does not have 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)
|
2021-01-12 16:10:47 -05:00
|
|
|
- group_link = link_to _("group's CI/CD settings."), group_settings_ci_cd_path(@project.group)
|
2018-06-03 21:32:57 -04:00
|
|
|
= _('Group maintainers can register group runners in the %{link}').html_safe % { link: group_link }
|
2017-12-19 12:04:33 -05:00
|
|
|
- else
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('Ask your group maintainer to set up a group runner.')
|
2017-10-04 07:59:51 -04:00
|
|
|
|
|
|
|
- else
|
2018-05-07 09:53:38 -04:00
|
|
|
%h4.underlined-title
|
2021-01-12 16:10:47 -05:00
|
|
|
= _('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
|