diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-09 19:32:15 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-09 19:32:15 +0000 |
commit | c8f53f0e14ca05ca3326e92fb2b71d2d8dfd5daa (patch) | |
tree | 9ab2fe1074a81a1a752583590fcfa57f96bc1772 /app/views/ci | |
parent | 1792528ae9a6f5d1e1a9b56516177564a3b334dd (diff) | |
parent | 8032df64de4f397817e953500755c8628430f8e2 (diff) | |
download | gitlab-ce-c8f53f0e14ca05ca3326e92fb2b71d2d8dfd5daa.tar.gz |
Merge branch 'didemacet-ci-lint-page' into 'master'
Change CI template linter textarea with Ace Editor
Closes #24179 and #19701
See merge request !8452
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/lints/show.html.haml | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/app/views/ci/lints/show.html.haml b/app/views/ci/lints/show.html.haml index 889086c62b1..95eb9a57152 100644 --- a/app/views/ci/lints/show.html.haml +++ b/app/views/ci/lints/show.html.haml @@ -1,20 +1,25 @@ - page_title "CI Lint" - page_description "Validate your GitLab CI configuration file" +- content_for :page_specific_javascripts do + = page_specific_javascript_tag('lib/ace.js') %h2 Check your .gitlab-ci.yml -%hr -.row - = form_tag ci_lint_path, method: :post do - .form-group - = label_tag(:content, 'Content of .gitlab-ci.yml', class: 'control-label text-nowrap') +.ci-linter + .row + = form_tag ci_lint_path, method: :post do + .form-group + .col-sm-12 + .file-holder + .file-title.clearfix + Content of .gitlab-ci.yml + #ci-editor.ci-editor #{@content} + = text_area_tag(:content, @content, class: 'hidden form-control span1', rows: 7, require: true) .col-sm-12 - = text_area_tag(:content, @content, class: 'form-control span1', rows: 7, require: true) - .col-sm-12 - .pull-left.prepend-top-10 - = submit_tag('Validate', class: 'btn btn-success submit-yml') + .pull-left.prepend-top-10 + = submit_tag('Validate', class: 'btn btn-success submit-yml') -.row.prepend-top-20 - .col-sm-12 - .results - = render partial: 'create' if defined?(@status) + .row.prepend-top-20 + .col-sm-12 + .results.ci-template + = render partial: 'create' if defined?(@status) |