Skip to content
Snippets Groups Projects
Commit b72bd838 authored by Gabriel Mazetto's avatar Gabriel Mazetto :spy_tone1:
Browse files

Backporting little groups_helper refactor from gitlab-org/gitlab-ee!904

parent 12e856a7
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