summaryrefslogtreecommitdiff
path: root/app/views/projects/runners/edit.html.haml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-06 08:47:19 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-19 22:01:53 +0200
commit9fd6f1b6009410cee0d0d7db8703ad64701db62b (patch)
tree4789962315d4635cc2094c08489a1a76478b7e12 /app/views/projects/runners/edit.html.haml
parent2ee24bd9ece394269c006f9762d3fa5e16876949 (diff)
downloadgitlab-ce-9fd6f1b6009410cee0d0d7db8703ad64701db62b.tar.gz
Improve displaying validation messages for runner
Diffstat (limited to 'app/views/projects/runners/edit.html.haml')
-rw-r--r--app/views/projects/runners/edit.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/runners/edit.html.haml b/app/views/projects/runners/edit.html.haml
index 771947d7908..a5cfa9a8da9 100644
--- a/app/views/projects/runners/edit.html.haml
+++ b/app/views/projects/runners/edit.html.haml
@@ -1,5 +1,11 @@
- page_title "Edit", "#{@runner.description} ##{@runner.id}", "Runners"
%h4 Runner ##{@runner.id}
+
+- if @runner.errors.any?
+ .error-message.js-errors
+ - @runner.errors.full_messages.each do |error|
+ %div= error
+
%hr
= render 'form', runner: @runner, runner_form_url: runner_path(@runner)