Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-10 11:59:07 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-10 11:59:07 +0300
commit75c6953fc76422b138335680b227e7303d20c136 (patch)
tree7049f780088d5c086de3eee50380978772e8b594 /app/helpers/groups_helper.rb
parent59c6ddcdefb813487d552499ebcb5504b5fde548 (diff)
Changed Group Icon URL Back to try option
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index f5ef9c53a7a..676c1d1988b 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -17,11 +17,7 @@ module GroupsHelper
group = Group.find_by_full_path(group)
end
- if group.avatar_url
- group.avatar_url
- else # No Avatar Icon
- ActionController::Base.helpers.image_path('no_group_avatar.png')
- end
+ group.try(:avatar_url) || ActionController::Base.helpers.image_path('no_group_avatar.png')
end
def group_title(group, name = nil, url = nil)