summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-07 20:35:08 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-19 22:01:53 +0200
commit8ab4a67ca6a9166168b744bc940da98bf9651efd (patch)
tree7036417fec69f1336c5383b074f8b8f2b7c65e62
parent3b0eeccc0324e2d6c024fd94067933314e45b862 (diff)
downloadgitlab-ce-8ab4a67ca6a9166168b744bc940da98bf9651efd.tar.gz
Use form errors helper in CI runner edit form
-rw-r--r--app/views/projects/runners/edit.html.haml5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/projects/runners/edit.html.haml b/app/views/projects/runners/edit.html.haml
index a5cfa9a8da9..e4aa98080e5 100644
--- a/app/views/projects/runners/edit.html.haml
+++ b/app/views/projects/runners/edit.html.haml
@@ -2,10 +2,7 @@
%h4 Runner ##{@runner.id}
-- if @runner.errors.any?
- .error-message.js-errors
- - @runner.errors.full_messages.each do |error|
- %div= error
+= form_errors(@runner)
%hr
= render 'form', runner: @runner, runner_form_url: runner_path(@runner)