2020-07-28 23:09:34 +05:30
|
|
|
- if lookup_context.template_exists?('top', "projects/services/#{@service.to_param}", true)
|
|
|
|
= render "projects/services/#{@service.to_param}/top"
|
|
|
|
|
|
|
|
.row.gl-mt-3.gl-mb-3
|
2020-05-24 23:13:21 +05:30
|
|
|
.col-lg-4
|
2020-10-24 23:57:45 +05:30
|
|
|
%h3.page-title.gl-mt-0
|
2016-06-16 23:09:34 +05:30
|
|
|
= @service.title
|
2019-12-04 20:38:33 +05:30
|
|
|
- [true, false].each do |value|
|
2020-05-24 23:13:21 +05:30
|
|
|
- hide_class = 'd-none' if @service.operating? != value
|
2019-12-04 20:38:33 +05:30
|
|
|
%span.js-service-active-status{ class: hide_class, data: { value: value.to_s } }
|
|
|
|
= boolean_to_icon value
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
- if @service.respond_to?(:detailed_description)
|
|
|
|
%p= @service.detailed_description
|
2020-05-24 23:13:21 +05:30
|
|
|
.col-lg-8
|
2020-11-24 15:15:51 +05:30
|
|
|
= form_for(@service, as: :service, url: scoped_integration_path(@service), method: :put, html: { class: 'gl-show-field-errors integration-settings-form js-integration-settings-form', data: { 'test-url' => test_project_service_path(@project, @service) } }) do |form|
|
2020-07-28 23:09:34 +05:30
|
|
|
= render 'shared/service_settings', form: form, integration: @service
|
2020-11-24 15:15:51 +05:30
|
|
|
%input{ id: 'services_redirect_to', type: 'hidden', name: 'redirect_to', value: request.referrer }
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if lookup_context.template_exists?('show', "projects/services/#{@service.to_param}", true)
|
|
|
|
%hr
|
|
|
|
= render "projects/services/#{@service.to_param}/show"
|