summaryrefslogtreecommitdiff
path: root/app/views/lints/_create.html.haml
blob: f82b406a7f3d6520440fe91e2d91a99b4638ea8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- if @status
  %p
    %b Status:
    syntax is correct
    %i.icon-ok.correct-syntax

  %table.table.table-bordered
    %thead
      %tr
        %th Parameter
        %th Value
    %tbody
      - @types.each do |type|
        - @builds.select { |build| build[:type] == type }.each do |build|
          %tr
            %td #{type.capitalize} Job - #{build[:name]}
            %td
              %pre
                = simple_format build[:script]

              %br
              %b Tag list:
              = build[:tags]
              %br
              %b Refs only:
              = build[:only] && build[:only].join(", ")
              %br
              %b Refs except:
              = build[:except] && build[:except].join(", ")

-else
  %p
    %b Status:
    syntax is incorrect
    %i.icon-remove.incorrect-syntax
  %b Error:
  = @error