diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-06-10 14:13:12 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-06-10 14:13:12 +0300 |
commit | 3d417bca57656f4eae53f951a0ce14a66b1f179a (patch) | |
tree | 74bf75ed6eb2eac1195f151a7d7c4d5ee742f4e4 /app/views | |
parent | 794fbd353ed99ba512e230cb824a7170bc5a25d2 (diff) | |
download | gitlab-ci-3d417bca57656f4eae53f951a0ce14a66b1f179a.tar.gz |
add links to lint, improve test coverage
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/lints/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/_form.html.haml | 4 | ||||
-rw-r--r-- | app/views/shared/_guide.html.haml | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/app/views/lints/show.html.haml b/app/views/lints/show.html.haml index a3172b3..d105495 100644 --- a/app/views/lints/show.html.haml +++ b/app/views/lints/show.html.haml @@ -3,7 +3,7 @@ = form_tag '/lint', method: :post, remote: true do .control-group - = label_tag "Content of .gitlab-ci.yml", :content, class: 'control-label' + = 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 diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml index 7f3cc56..e7c1bad 100644 --- a/app/views/projects/_form.html.haml +++ b/app/views/projects/_form.html.haml @@ -1,3 +1,7 @@ +.bs-callout.help-callout + %p + If you want to test your .gitlab-ci.yml, you can use special tool - #{link_to "Lint", lint_path} + = nested_form_for @project, html: { class: 'form-horizontal' } do |f| - if @project.errors.any? #error_explanation diff --git a/app/views/shared/_guide.html.haml b/app/views/shared/_guide.html.haml index a1709dd..8a3f663 100644 --- a/app/views/shared/_guide.html.haml +++ b/app/views/shared/_guide.html.haml @@ -6,7 +6,7 @@ Add at least one runner to the project. Go to #{link_to 'Runners page', project_runners_path(@project), target: :blank} for instructions. %li - Put the .gitlab-ci.yml in the root of your repository. Examples can be found in #{link_to "Configuraton of your builds with .gitlab-ci.yml", "http://doc.gitlab.com/ci/builds_configuration/README.html", target: :blank} + Put the .gitlab-ci.yml in the root of your repository. Examples can be found in #{link_to "Configuraton of your builds with .gitlab-ci.yml", "http://doc.gitlab.com/ci/builds_configuration/README.html", target: :blank}. You can also test your .gitlab-ci.yml in the #{link_to "Lint", lint_path} %li Visit #{link_to 'GitLab project settings', @project.gitlab_url + "/services/gitlab_ci/edit", target: :blank} and press the "Test settings" button. |