Commit b72bd838 authored by Gabriel Mazetto's avatar Gabriel Mazetto

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

parent 12e856a7
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment