debian-mirror-gitlab/app/views/projects/runners/_group_runners.html.haml

38 lines
1.5 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
- link = link_to _('Runners API'), help_page_path('api/runners.md')
2018-10-15 14:42:47 +05:30
%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)
2018-11-08 19:23:39 +05:30
- 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 }
2018-10-15 14:42:47 +05:30
- else
2018-12-05 23:21:45 +05:30
= _('Ask your group maintainer to set up a group Runner.')
2018-10-15 14:42:47 +05:30
- else
%h4.underlined-title
2019-03-02 22:35:43 +05:30
= _('Available group Runners: %{runners}').html_safe % { runners: @group_runners.count }
2018-10-15 14:42:47 +05:30
%ul.bordered-list
= render partial: 'projects/runners/runner', collection: @group_runners, as: :runner