BigW Consortium Gitlab

_create.html.haml 1.13 KB
Newer Older
1 2 3 4
- if @status
  %p
    %b Status:
    syntax is correct
5
    %i.fa.fa-ok.correct-syntax
6

Douwe Maan committed
7 8 9 10 11 12 13 14 15 16 17 18
  .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
19
                %pre= build[:commands]
20

Douwe Maan committed
21 22
                %br
                %b Tag list:
23
                = build[:tag_list].to_a.join(", ")
Douwe Maan committed
24 25
                %br
                %b Refs only:
26
                = @jobs[build[:name].to_sym][:only].to_a.join(", ")
Douwe Maan committed
27 28
                %br
                %b Refs except:
29
                = @jobs[build[:name].to_sym][:except].to_a.join(", ")
30
                %br
31 32 33
                %b Environment:
                = build[:environment]
                %br
34 35 36
                %b When:
                = build[:when]
                - if build[:allow_failure]
37
                  %b Allowed to fail
38 39 40 41 42

-else
  %p
    %b Status:
    syntax is incorrect
43
    %i.fa.fa-remove.incorrect-syntax
44 45
  %b Error:
  = @error