project admin area - show project name with namespace
This commit is contained in:
parent
ae282f6326
commit
1d857aae17
3 changed files with 14 additions and 7 deletions
|
@ -259,4 +259,14 @@ class Project < ActiveRecord::Base
|
|||
save!
|
||||
end
|
||||
end
|
||||
|
||||
def name_with_namespace
|
||||
@name_with_namespace ||= begin
|
||||
if namespace
|
||||
namespace.human_name + " / " + name
|
||||
else
|
||||
name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue