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

21 lines
1,012 B
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
= render layout: 'shared/runners/shared_runners_description' do
2015-09-25 12:07:36 +05:30
%hr
2021-01-03 14:25:43 +05:30
- if @project.group&.shared_runners_setting == 'disabled_and_unoverridable'
%h5.gl-text-red-500
= _('Shared runners disabled on group level')
2015-09-25 12:07:36 +05:30
- else
2021-01-03 14:25:43 +05:30
- if @project.shared_runners_enabled?
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-close', method: :post do
= _('Disable shared runners')
- else
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-success', method: :post do
= _('Enable shared runners')
  for this project
2015-09-25 12:07:36 +05:30
2020-10-24 23:57:45 +05:30
- if @shared_runners_count == 0
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
2019-02-15 15:39:39 +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