27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
- isVueifySharedRunnersToggleEnabled = Feature.enabled?(:vueify_shared_runners_toggle, @project)
|
|
|
|
= render layout: 'shared/runners/shared_runners_description' do
|
|
- if !isVueifySharedRunnersToggleEnabled
|
|
%br
|
|
%br
|
|
- if @project.group&.shared_runners_setting == 'disabled_and_unoverridable'
|
|
%h5.gl-text-red-500
|
|
= _('Shared runners disabled on group level')
|
|
- else
|
|
- if @project.shared_runners_enabled?
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn gl-button btn-warning-secondary', method: :post do
|
|
= _('Disable shared runners')
|
|
- else
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn gl-button btn-confirm', method: :post do
|
|
= _('Enable shared runners')
|
|
for this project
|
|
|
|
- if isVueifySharedRunnersToggleEnabled
|
|
#toggle-shared-runners-form{ data: toggle_shared_runners_settings_data(@project) }
|
|
|
|
- if @shared_runners_count == 0
|
|
= _('This GitLab instance does not provide any shared runners yet. Instance administrators can register shared runners in the admin area.')
|
|
- else
|
|
%h4.underlined-title #{_('Available shared runners:')} #{@shared_runners_count}
|
|
%ul.bordered-list.available-shared-runners
|
|
= render partial: 'projects/runners/runner', collection: @shared_runners, as: :runner
|