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

27 lines
1.2 KiB
Text
Raw Normal View History

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