_gitlab_ci.html.haml 1.24 KB
Newer Older
1
%h3.page_title
2
3
  GitLab CI
  %small Continuous integration server from GitLab
4
  .right
5
6
7
    - if @service.active
      %small.cgreen Enabled
    - else
8
      %small.cgray Disabled
9
10
11
12
13
14



.back_link
  = link_to project_services_path(@project) do
    ← to services
15
16

%hr
17
= form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f|
18
19
20
21
22
23
24
25
26
27
28
29
30
  - 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
Nihad Abbasov's avatar
Nihad Abbasov committed
31
    = f.label :project_url, "Project URL", class: "control-label"
32
33
34
35
36
37
38
39
40
41
42
43
44
    .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'
     
45
46
    - if @service.valid? && @service.active
      = link_to 'Test settings', test_project_service_path(@project), class: 'btn btn-small'