diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-21 21:51:55 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-21 21:51:55 +0300 |
commit | 421b11158d8420b3fe337b63d5686c24b5644c94 (patch) | |
tree | aacee7ced0bab18ab3e3e11a0ac40d87adaa802c | |
parent | e7570250afd88934d8435678b5c618d3ac202d17 (diff) | |
download | gitlab-ce-421b11158d8420b3fe337b63d5686c24b5644c94.tar.gz |
error fields highlight
-rw-r--r-- | app/assets/stylesheets/projects.css.scss | 9 | ||||
-rw-r--r-- | app/models/project.rb | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index 517886722c1..8caa2810e78 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -638,3 +638,12 @@ tbody tr:nth-child(2n) td, tbody tr.even td { display:none; } } + +.field_with_errors { + input[type="text"], + input[type="password"], + textarea + { + background: none repeat scroll 0 0 #FFBBBB + } +} diff --git a/app/models/project.rb b/app/models/project.rb index 1dd04e1fcb6..5262e55245d 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -35,7 +35,6 @@ class Project < ActiveRecord::Base :presence => true validate :check_limit - validate :repo_name after_destroy :destroy_gitosis_project @@ -172,7 +171,7 @@ class Project < ActiveRecord::Base 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 |