Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
94cd39a2732a
Commit
94cd39a2
authored
Oct 21, 2011
by
gitlabhq
Browse files
error fields highlight
parent
199ec0607d74
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/projects.css.scss
View file @
94cd39a2
...
...
@@ -638,3 +638,12 @@
display
:none
;
}
}
.field_with_errors
{
input
[
type
=
"text"
],
input
[
type
=
"password"
],
textarea
{
background
:
none
repeat
scroll
0
0
#FFBBBB
}
}
app/models/project.rb
View file @
94cd39a2
...
...
@@ -35,7 +35,6 @@
:presence
=>
true
validate
:check_limit
validate
:repo_name
after_destroy
:destroy_gitosis_project
...
...
@@ -172,7 +171,7 @@
def
repo_name
if
path
==
"gitosis-admin"
errors
.
add
(
:path
,
"
Project path
like 'gitosis-admin' is not allowed"
)
errors
.
add
(
:path
,
" like 'gitosis-admin' is not allowed"
)
end
end
...
...
Write
Preview
Supports
Markdown
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