debian-mirror-gitlab/app/views/projects/runners/_group_runners.html.haml
2019-03-02 22:35:43 +05:30

37 lines
1.5 KiB
Text

- 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 }
- 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
= _('Disable group Runners')
- else
= link_to toggle_group_runners_project_runners_path(@project), class: 'btn btn-success btn-inverted', method: :post do
= _('Enable group Runners')
 
= _('for this project')
- if !@project.group
= _('This project does not belong to a group and can therefore not make use of group Runners.')
- elsif @group_runners.empty?
= _('This group does not provide any group Runners yet.')
- if can?(current_user, :admin_pipeline, @project.group)
- group_link = link_to _('Group CI/CD settings'), group_settings_ci_cd_path(@project.group)
= _('Group maintainers can register group runners in the %{link}').html_safe % { link: group_link }
- else
= _('Ask your group maintainer to set up a group Runner.')
- else
%h4.underlined-title
= _('Available group Runners: %{runners}').html_safe % { runners: @group_runners.count }
%ul.bordered-list
= render partial: 'projects/runners/runner', collection: @group_runners, as: :runner