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

29 lines
1.2 KiB
Text
Raw Normal View History

%h3 Shared Runners
2015-08-25 21:42:46 -04:00
2016-04-15 09:51:41 -04:00
.bs-callout.bs-callout-warning.shared-runners-description
- if shared_runners_text.present?
2016-04-19 07:39:53 -04:00
= markdown(shared_runners_text, pipeline: 'plain_markdown')
2016-04-15 09:51:41 -04:00
- else
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-08-25 21:42:46 -04:00
%hr
2015-12-04 06:55:23 -05:00
- if @project.shared_runners_enabled?
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-warning', method: :post do
Disable shared Runners
2015-08-25 21:42:46 -04:00
- else
2015-12-04 06:55:23 -05:00
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-success', method: :post do
Enable shared Runners
2015-08-25 21:42:46 -04:00
  for this project
- if @shared_runners_count.zero?
This GitLab server does not provide any shared Runners yet.
Please use the specific Runners or ask your administrator to create one.
2015-08-25 21:42:46 -04:00
- else
%h4.underlined-title Available shared Runners : #{@shared_runners_count}
2015-08-25 21:42:46 -04:00
%ul.bordered-list.available-shared-runners
= render partial: 'runner', collection: @shared_runners, as: :runner
2015-08-25 21:42:46 -04:00
- if @shared_runners_count > 10
.light
and #{@shared_runners_count - 10} more...