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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f8961b3d
Commit
f8961b3d
authored
Oct 21, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error fields highlight
parent
c62ba2d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+9
-0
app/models/project.rb
app/models/project.rb
+1
-2
No files found.
app/assets/stylesheets/projects.css.scss
View file @
f8961b3d
...
@@ -638,3 +638,12 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
...
@@ -638,3 +638,12 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
display
:none
;
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 @
f8961b3d
...
@@ -35,7 +35,6 @@ class Project < ActiveRecord::Base
...
@@ -35,7 +35,6 @@ class Project < ActiveRecord::Base
:presence
=>
true
:presence
=>
true
validate
:check_limit
validate
:check_limit
validate
:repo_name
validate
:repo_name
after_destroy
:destroy_gitosis_project
after_destroy
:destroy_gitosis_project
...
@@ -172,7 +171,7 @@ class Project < ActiveRecord::Base
...
@@ -172,7 +171,7 @@ class Project < ActiveRecord::Base
def
repo_name
def
repo_name
if
path
==
"gitosis-admin"
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
end
end
...
...
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