diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-20 16:22:47 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-20 16:22:47 +0300 |
commit | 1a4c9118aec5c25bf39cdc6db640569bf5c6d0e9 (patch) | |
tree | 878b008ed0480ceeec5f0314807721f69823186f /app/views/projects/wikis/_form.html.haml | |
parent | 9eb7fe6d06f39cc011fa9ee3cc8b137d60f5d90e (diff) | |
download | gitlab-ce-1a4c9118aec5c25bf39cdc6db640569bf5c6d0e9.tar.gz |
Fix UI for wiki error message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/wikis/_form.html.haml')
-rw-r--r-- | app/views/projects/wikis/_form.html.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml index c77ed3433d1..0c2e33f2282 100644 --- a/app/views/projects/wikis/_form.html.haml +++ b/app/views/projects/wikis/_form.html.haml @@ -1,10 +1,9 @@ = form_for [@project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal' } do |f| -if @page.errors.any? #error_explanation - %h2= "#{pluralize(@page.errors.count, "error")} prohibited this wiki from being saved:" - %ul + .alert.alert-danger - @page.errors.full_messages.each do |msg| - %li= msg + %p= msg = f.hidden_field :title, value: @page.title .form-group |