diff options
author | Xurxo <sonxurxo@gmail.com> | 2017-03-15 15:02:48 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-15 15:02:48 +0000 |
commit | ee05872759daf5973905fb4434cc3b1b0584d88b (patch) | |
tree | cb2896c711c9132f9c17f3b3dd4b984f556aa95e /app/views/shared/groups | |
parent | 0ace54e8bd1a0afea462894352a379623633e455 (diff) | |
download | gitlab-ce-ee05872759daf5973905fb4434cc3b1b0584d88b.tar.gz |
Remove whitespace in group links
Diffstat (limited to 'app/views/shared/groups')
-rw-r--r-- | app/views/shared/groups/_group.html.haml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/shared/groups/_group.html.haml b/app/views/shared/groups/_group.html.haml index 60ca23ef680..a95020a9be8 100644 --- a/app/views/shared/groups/_group.html.haml +++ b/app/views/shared/groups/_group.html.haml @@ -1,5 +1,6 @@ - group_member = local_assigns[:group_member] - full_name = true unless local_assigns[:full_name] == false +- group_name = full_name ? group.full_name : group.name - css_class = '' unless local_assigns[:css_class] - css_class += " no-description" if group.description.blank? @@ -28,11 +29,7 @@ .avatar-container.s40 = image_tag group_icon(group), class: "avatar s40 hidden-xs" .title - = link_to group, class: 'group-name' do - - if full_name - = group.full_name - - else - = group.name + = link_to group_name, group, class: 'group-name' - if group_member as |