This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 421b1115 authored by gitlabhq's avatar gitlabhq
Browse files

error fields highlight

parent f32fbffa5e5e
......@@ -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
}
}
......@@ -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 @@ def check_limit
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment