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

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-11-19 20:34:05 +01:00
%h3.page_title
GitLab CI
%small Continuous integration server from GitLab
2013-01-30 15:40:43 +01:00
.pull-right
- if @service.active
%small.cgreen Enabled
- else
2012-12-05 04:14:05 +01:00
%small.cgray Disabled
2012-11-19 20:34:05 +01:00
.back_link
= link_to project_services_path(@project) do
← to services
%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?
2013-01-30 15:53:18 +01:00
.alert.alert-error
2012-11-19 20:34:05 +01:00
%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
2013-01-29 21:18:19 +01:00
= f.submit 'Save', class: 'btn btn-save'
2012-11-19 20:34:05 +01:00
 
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'