Skip to content
Snippets Groups Projects
Commit 3fc6eff5 authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch 'backport/groups-helper-refactor' into 'master'

Backport groups_helper refactor from gitlab-org/gitlab-ee!904

This is a simple backport from a change in `groups_helper.rb` introduced by gitlab-org/gitlab-ee!904, requested here: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/904#note_18894726

See merge request !7767
parents d2813832 b72bd838
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,11 +8,7 @@ module GroupsHelper
group = Group.find_by(path: group)
end
 
if group && group.avatar.present?
group.avatar.url
else
image_path('no_group_avatar.png')
end
group.try(:avatar_url) || image_path('no_group_avatar.png')
end
 
def group_title(group, name = nil, url = nil)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment