summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-11 08:26:05 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-05-11 08:26:05 +0000
commit1c75e4e6a0e7a0dbcce679998fb7e3d45b9a25b7 (patch)
treededc925b0216207973a97ba871a9db9396ead407 /app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
parent4067dd4f84681dd109fb8e1957b6327b4db20193 (diff)
parent909975051369f57278000acb7cddc7b0dafc9906 (diff)
downloadgitlab-ce-1c75e4e6a0e7a0dbcce679998fb7e3d45b9a25b7.tar.gz
Merge branch 'dm-auxiliary-viewers' into 'master'
Implement auxiliary blob viewers See merge request !11195
Diffstat (limited to 'app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml')
-rw-r--r--app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml b/app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
new file mode 100644
index 00000000000..28c5be6ebf3
--- /dev/null
+++ b/app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
@@ -0,0 +1,9 @@
+- if viewer.valid?
+ = icon('check fw')
+ This GitLab CI configuration is valid.
+- else
+ = icon('warning fw')
+ This GitLab CI configuration is invalid:
+ = viewer.validation_message
+
+= link_to 'Learn more', help_page_path('ci/yaml/README')