diff options
Diffstat (limited to 'app/helpers/avatars_helper.rb')
-rw-r--r-- | app/helpers/avatars_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/avatars_helper.rb b/app/helpers/avatars_helper.rb index 617bc0e9bee..798bb7b64a4 100644 --- a/app/helpers/avatars_helper.rb +++ b/app/helpers/avatars_helper.rb @@ -105,9 +105,10 @@ module AvatarsHelper end def avatar_without_link(resource, options = {}) - if resource.is_a?(Namespaces::UserNamespace) + case resource + when Namespaces::UserNamespace user_avatar_without_link(options.merge(user: resource.first_owner)) - elsif resource.is_a?(Group) + when Group group_icon(resource, options.merge(class: 'avatar')) end end |