Fix ci service creation logic

This commit is contained in:
Dmitriy Zaporozhets 2012-11-20 14:16:04 +02:00
parent 406a0c809b
commit 9f65c274ef
3 changed files with 11 additions and 6 deletions

View file

@ -11,7 +11,7 @@
%hr
= form_for(@service, :as => :service, :url => project_service_path(@project, @service), :method => :put) do |f|
= form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f|
- if @service.errors.any?
.alert-message.block-message.error
%ul
@ -39,4 +39,5 @@
.form-actions
= f.submit 'Save', class: 'btn save-btn'
 
= link_to 'Test settings', test_project_service_path(@project), class: 'btn btn-small'
- if @service.valid? && @service.active
= link_to 'Test settings', test_project_service_path(@project), class: 'btn btn-small'