summaryrefslogtreecommitdiff
path: root/app/helpers/namespaces_helper.rb
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2018-03-28 14:09:07 +0100
committerMark Fletcher <mark@gitlab.com>2018-03-28 14:09:32 +0100
commit22d9390b11c2ec2af09e16679036705bdd3bbfa8 (patch)
treede04337295bf3a960176d9400fb051f76d4760cb /app/helpers/namespaces_helper.rb
parent3adbc579bc45bf61510bc83900d07e8b0bafa088 (diff)
downloadgitlab-ce-22d9390b11c2ec2af09e16679036705bdd3bbfa8.tar.gz
Fix bug rendering group icons when forking
- NamespacesHelper#namespace_icon should return a URL instead of an image_tag for groups
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index 40ca666f1bf..9be93fa69ae 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -31,7 +31,7 @@ module NamespacesHelper
def namespace_icon(namespace, size = 40)
if namespace.is_a?(Group)
- group_icon(namespace)
+ group_icon_url(namespace)
else
avatar_icon_for_user(namespace.owner, size)
end