diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-08 18:30:11 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-13 16:43:12 +0200 |
commit | 8128ce3054749401acfee2c91d38e0e731253624 (patch) | |
tree | 4a49566109f3eeb86e44940c07ac6867c90e8288 /app/models/namespace.rb | |
parent | 6328f26c41114c4bc6606097a718022fac2bb168 (diff) | |
download | gitlab-ce-8128ce3054749401acfee2c91d38e0e731253624.tar.gz |
Show full path for nested groups at dashboard groups list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 37374044551..464be910f5a 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -162,6 +162,14 @@ class Namespace < ActiveRecord::Base end end + def full_name + if parent + parent.full_name + ' / ' + name + else + name + end + end + private def repository_storage_paths |