Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-06 09:47:19 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-19 23:01:53 +0300
commit9fd6f1b6009410cee0d0d7db8703ad64701db62b (patch)
tree4789962315d4635cc2094c08489a1a76478b7e12 /app/views/projects/runners
parent2ee24bd9ece394269c006f9762d3fa5e16876949 (diff)
Improve displaying validation messages for runner
Diffstat (limited to 'app/views/projects/runners')
-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)