2017-05-25 04:52:07 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= webpack_bundle_tag('integrations')
|
|
|
|
|
2016-05-17 05:38:01 -04:00
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= @service.title
|
|
|
|
= boolean_to_icon @service.activated?
|
2013-05-22 09:58:44 -04:00
|
|
|
|
2016-05-17 05:38:01 -04:00
|
|
|
%p= @service.description
|
|
|
|
.col-lg-9
|
2017-06-29 13:06:35 -04:00
|
|
|
= form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal js-integration-settings-form', data: { 'can-test' => @service.can_test?, 'test-url' => test_project_service_path(@project, @service) } }) do |form|
|
2016-12-16 09:45:56 -05:00
|
|
|
= render 'shared/service_settings', form: form, subject: @service
|
2017-07-05 08:07:03 -04:00
|
|
|
- if @service.editable?
|
|
|
|
.footer-block.row-content-block
|
2018-01-04 04:33:51 -05:00
|
|
|
= service_save_button(@service)
|
2017-07-05 08:07:03 -04:00
|
|
|
|
|
|
|
- if @service.valid? && @service.activated?
|
|
|
|
- unless @service.can_test?
|
|
|
|
- disabled_class = 'disabled'
|
|
|
|
- disabled_title = @service.disabled_title
|
2016-07-06 16:52:00 -04:00
|
|
|
|
2017-09-29 18:52:07 -04:00
|
|
|
= link_to 'Cancel', project_settings_integrations_path(@project), class: 'btn btn-cancel'
|
2017-05-26 10:25:14 -04:00
|
|
|
|
|
|
|
- if lookup_context.template_exists?('show', "projects/services/#{@service.to_param}", true)
|
|
|
|
%hr
|
2017-05-31 10:47:31 -04:00
|
|
|
= render "projects/services/#{@service.to_param}/show"
|