_create.html.haml 1.0 KB
Newer Older
D
Douwe Maan 已提交
1 2 3 4
- if @status
  %p
    %b Status:
    syntax is correct
5
    %i.fa.fa-ok.correct-syntax
D
Douwe Maan 已提交
6

D
Douwe Maan 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19
  .table-holder
    %table.table.table-bordered
      %thead
        %tr
          %th Parameter
          %th Value
      %tbody
        - @stages.each do |stage|
          - @builds.select { |build| build[:stage] == stage }.each do |build|
            %tr
              %td #{stage.capitalize} Job - #{build[:name]}
              %td
                %pre
K
Kamil Trzcinski 已提交
20
                  = simple_format build[:commands]
D
Douwe Maan 已提交
21

D
Douwe Maan 已提交
22 23 24 25 26 27 28 29 30
                %br
                %b Tag list:
                = build[:tags]
                %br
                %b Refs only:
                = build[:only] && build[:only].join(", ")
                %br
                %b Refs except:
                = build[:except] && build[:except].join(", ")
K
Kamil Trzcinski 已提交
31 32 33 34
                %br
                %b When:
                = build[:when]
                - if build[:allow_failure]
35
                  %b Allowed to fail
D
Douwe Maan 已提交
36 37 38 39 40

-else
  %p
    %b Status:
    syntax is incorrect
41
    %i.fa.fa-remove.incorrect-syntax
D
Douwe Maan 已提交
42 43 44 45
  %b Error:
  = @error