diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-04 15:44:16 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-04 15:50:07 -0600 |
commit | f4772b37c9fbccb72d1956e308313a8bb1dc8342 (patch) | |
tree | dca423c7f0c432f605523014747a802f0a14e977 /app/views/ci | |
parent | 7c2a4699b8bdd9d8abd193e4256694115b41fc07 (diff) | |
download | gitlab-ce-f4772b37c9fbccb72d1956e308313a8bb1dc8342.tar.gz |
Change CI template linter textarea with Ace Editor
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/lints/show.html.haml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/app/views/ci/lints/show.html.haml b/app/views/ci/lints/show.html.haml index 889086c62b1..9af00319afa 100644 --- a/app/views/ci/lints/show.html.haml +++ b/app/views/ci/lints/show.html.haml @@ -2,19 +2,26 @@ - page_description "Validate your GitLab CI configuration file" %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) + .pull-left.prepend-top-10 + = submit_tag('Validate', class: 'btn btn-success submit-yml') + + .row.prepend-top-20 .col-sm-12 - .pull-left.prepend-top-10 - = submit_tag('Validate', class: 'btn btn-success submit-yml') + .results.ci-template + = render partial: 'create' if defined?(@status) + -.row.prepend-top-20 - .col-sm-12 - .results - = render partial: 'create' if defined?(@status) +- content_for :page_specific_javascripts do + = page_specific_javascript_tag('lib/ace.js') |