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

24 lines
1.2 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
%h3
= _('Shared Runners')
2015-09-25 12:07:36 +05:30
2018-03-27 19:54:05 +05:30
.bs-callout.shared-runners-description
2018-03-17 18:26:18 +05:30
- if Gitlab::CurrentSettings.shared_runners_text.present?
= markdown_field(Gitlab::CurrentSettings.current_application_settings, :shared_runners_text)
2016-06-02 11:05:42 +05:30
- else
2018-12-23 12:14:25 +05:30
= _('GitLab Shared Runners execute code of different projects on the same Runner unless you configure GitLab Runner Autoscale with MaxBuilds 1 (which it is on GitLab.com).')
2015-09-25 12:07:36 +05:30
%hr
2015-12-23 02:04:40 +05:30
- if @project.shared_runners_enabled?
2018-03-27 19:54:05 +05:30
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-close', method: :post do
2018-12-23 12:14:25 +05:30
= _('Disable shared Runners')
2015-09-25 12:07:36 +05:30
- else
2017-09-10 17:25:29 +05:30
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-success', method: :post do
2018-12-23 12:14:25 +05:30
= _('Enable shared Runners')
2015-09-25 12:07:36 +05:30
  for this project
- if @shared_runners_count.zero?
2018-11-08 19:23:39 +05:30
= _('This GitLab instance does not provide any shared Runners yet. Instance administrators can register shared Runners in the admin area.')
2015-09-25 12:07:36 +05:30
- else
2018-12-23 12:14:25 +05:30
%h4.underlined-title #{_('Available shared Runners:')} #{@shared_runners_count}
2015-09-25 12:07:36 +05:30
%ul.bordered-list.available-shared-runners
2017-08-17 22:00:37 +05:30
= render partial: 'projects/runners/runner', collection: @shared_runners, as: :runner