Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
1a4c9118
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
app/views/projects/wikis/_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
|
=
form_for
[
@project
,
@page
],
method:
@page
.
persisted?
?
:put
:
:post
,
html:
{
class:
'form-horizontal'
}
do
|
f
|
-
if
@page
.
errors
.
any?
-
if
@page
.
errors
.
any?
#error_explanation
#error_explanation
%h2
=
"
#{
pluralize
(
@page
.
errors
.
count
,
"error"
)
}
prohibited this wiki from being saved:"
.alert.alert-danger
%ul
-
@page
.
errors
.
full_messages
.
each
do
|
msg
|
-
@page
.
errors
.
full_messages
.
each
do
|
msg
|
%
li
=
msg
%
p
=
msg
=
f
.
hidden_field
:title
,
value:
@page
.
title
=
f
.
hidden_field
:title
,
value:
@page
.
title
.form-group
.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