2017-09-10 17:25:29 +05:30
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= webpack_bundle_tag('integrations')
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= @service.title
|
|
|
|
= boolean_to_icon @service.activated?
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
%p= @service.description
|
|
|
|
.col-lg-9
|
2018-03-17 18:26:18 +05:30
|
|
|
= form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal integration-settings-form js-integration-settings-form', data: { 'can-test' => @service.can_test?, 'test-url' => test_project_service_path(@project, @service) } }) do |form|
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/service_settings', form: form, subject: @service
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @service.editable?
|
|
|
|
.footer-block.row-content-block
|
2018-03-17 18:26:18 +05:30
|
|
|
= service_save_button(@service)
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
- if @service.valid? && @service.activated?
|
|
|
|
- unless @service.can_test?
|
|
|
|
- disabled_class = 'disabled'
|
|
|
|
- disabled_title = @service.disabled_title
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
= link_to 'Cancel', project_settings_integrations_path(@project), class: 'btn btn-cancel'
|
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"
|