2021-02-22 17:27:13 +05:30
|
|
|
- isVueifySharedRunnersToggleEnabled = Feature.enabled?(:vueify_shared_runners_toggle, @project)
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
= render layout: 'shared/runners/shared_runners_description' do
|
2021-02-22 17:27:13 +05:30
|
|
|
- if !isVueifySharedRunnersToggleEnabled
|
2021-03-08 18:12:59 +05:30
|
|
|
%br
|
|
|
|
%br
|
2021-02-22 17:27:13 +05:30
|
|
|
- if @project.group&.shared_runners_setting == 'disabled_and_unoverridable'
|
|
|
|
%h5.gl-text-red-500
|
|
|
|
= _('Shared runners disabled on group level')
|
2021-01-03 14:25:43 +05:30
|
|
|
- else
|
2021-02-22 17:27:13 +05:30
|
|
|
- if @project.shared_runners_enabled?
|
2021-03-11 19:13:27 +05:30
|
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn gl-button btn-warning-secondary', method: :post do
|
2021-02-22 17:27:13 +05:30
|
|
|
= _('Disable shared runners')
|
|
|
|
- else
|
2021-04-29 21:17:54 +05:30
|
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn gl-button btn-confirm', method: :post do
|
2021-02-22 17:27:13 +05:30
|
|
|
= _('Enable shared runners')
|
|
|
|
for this project
|
|
|
|
|
|
|
|
- if isVueifySharedRunnersToggleEnabled
|
|
|
|
#toggle-shared-runners-form{ data: toggle_shared_runners_settings_data(@project) }
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
- if @shared_runners_count == 0
|
2021-03-08 18:12:59 +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
|
2021-03-08 18:12:59 +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
|