Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
projects.thm.de
GitLab
Commits
1a4c9118
Unverified
Commit
1a4c9118
authored
May 20, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UI for wiki error message
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
9eb7fe6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
_form.html.haml
app/views/projects/wikis/_form.html.haml
+2
-3
No files found.
app/views/projects/wikis/_form.html.haml
View file @
1a4c9118
=
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment