gitlabhq/app/views/services/_gitlab_ci.html.haml

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-11-19 20:34:05 +01:00
%h3.page_title
Services → GitLab CI Integration
.right
.thumbnail
- if @service.active
= image_tag 'service-gitlab-ci.png', class: 'small'
- else
= image_tag 'service-disabled-gitlab-ci.png', class: 'small'
%hr
2012-11-20 13:16:04 +01:00
= form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f|
2012-11-19 20:34:05 +01:00
- if @service.errors.any?
.alert-message.block-message.error
%ul
- @service.errors.full_messages.each do |msg|
%li= msg
.control-group
= f.label :active, "Active", class: "control-label"
.controls
= f.check_box :active
.control-group
2012-11-29 23:26:18 +01:00
= f.label :project_url, "Project URL", class: "control-label"
2012-11-19 20:34:05 +01:00
.controls
= f.text_field :project_url, class: "input-xlarge", placeholder: "http://ci.gitlabhq.com/projects/3"
.control-group
= f.label :token, class: "control-label" do
CI Project token
.controls
= f.text_field :token, class: "input-xlarge", placeholder: "GitLab CI project specific token"
.form-actions
= f.submit 'Save', class: 'btn save-btn'
 
2012-11-20 13:16:04 +01:00
- if @service.valid? && @service.active
= link_to 'Test settings', test_project_service_path(@project), class: 'btn btn-small'