Show full path for nested groups at dashboard groups list

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-12-08 18:30:11 +02:00
parent 6328f26c41
commit 8128ce3054
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -28,7 +28,7 @@
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
.title
= link_to group, class: 'group-name' do
= group.name
= group.full_name
- if group_member
as