summaryrefslogtreecommitdiff
path: root/app/views/ci/lints/show.html.haml
blob: fb9057e4882069229f557c83af711e1dbc719ab3 (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
%h2 Check your .gitlab-ci.yml
%hr

= form_tag ci_lint_path, method: :post, remote: true do
  .control-group
    = label_tag :content, "Content of .gitlab-ci.yml", class: 'control-label'
    .controls
      = text_area_tag :content, nil, class: 'form-control span1', rows: 7, require: true

  .control-group.clearfix
    .controls.pull-left.prepend-top-10
      = submit_tag "Validate", class: 'btn btn-success submit-yml'


%p.text-center.loading
  %i.fa.fa-refresh.fa-spin

.results.prepend-top-20

:javascript
  $(".loading").hide();
  $('form').bind('ajax:beforeSend', function() {
    $(".loading").show();
  });
  $('form').bind('ajax:complete', function() {
    $(".loading").hide();
  });