gitlab-org--gitlab-foss/app/views/services/_gitlab_ci.html.haml

47 lines
1.2 KiB
Text
Raw Normal View History

2012-11-19 14:34:05 -05:00
%h3.page_title
GitLab CI
%small Continuous integration server from GitLab
2013-01-30 09:40:43 -05:00
.pull-right
- if @service.active
%small.cgreen Enabled
- else
2012-12-04 22:14:05 -05:00
%small.cgray Disabled
2012-11-19 14:34:05 -05:00
.back_link
= link_to project_services_path(@project) do
← to services
%hr
2012-11-20 07:16:04 -05:00
= form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f|
2012-11-19 14:34:05 -05:00
- if @service.errors.any?
2013-01-30 09:53:18 -05:00
.alert.alert-error
2012-11-19 14:34:05 -05: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 17:26:18 -05:00
= f.label :project_url, "Project URL", class: "control-label"
2012-11-19 14:34:05 -05: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 15:18:19 -05:00
= f.submit 'Save', class: 'btn btn-save'
2012-11-19 14:34:05 -05:00
 
2012-11-20 07:16:04 -05:00
- if @service.valid? && @service.active
= link_to 'Test settings', test_project_service_path(@project), class: 'btn btn-small'