gitlab-org--gitlab-foss/app/views/projects/runners/_group_runners.html.haml

38 lines
1.5 KiB
Text
Raw Normal View History

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')
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
- if @project.group
%hr
- if @project.group_runners_enabled?
= 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')
- else
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn btn-success btn-inverted', method: :post do
2018-05-07 09:53:38 -04:00
= _('Enable group Runners')
 
= _('for this project')
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
- if can?(current_user, :admin_pipeline, @project.group)
2018-05-09 03:37:51 -04:00
- group_link = link_to _('Group 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 }
- else
2018-06-03 21:32:57 -04:00
= _('Ask your group maintainer 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