summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-05-31 13:02:12 +0100
committerSean McGivern <sean@gitlab.com>2016-05-31 13:03:08 +0100
commit79be6d2fcc45651feb66675ef85cbcb4f88ef74e (patch)
tree5c9615cef1cf993e2d6077d73a4a8ffa2dd96154
parentef4fedc18f5e2475aa36cc4327a76a496567c6fc (diff)
downloadgitlab-ce-14446-no_group_avatar-png-link.tar.gz
Fix link to blank group icon14446-no_group_avatar-png-link
When the group is the default blank icon, this needs to use the `image_path` helper; otherwise, the link won't work if assets are precompiled. This still works fine for uploaded icons in either case.
-rw-r--r--app/views/groups/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml
index 77c297255b8..df7894f2967 100644
--- a/app/views/groups/show.html.haml
+++ b/app/views/groups/show.html.haml
@@ -6,7 +6,7 @@
.cover-block.groups-cover-block
.container-fluid.container-limited
- = link_to group_icon(@group), target: '_blank' do
+ = link_to(image_path(group_icon(@group)), target: '_blank') do
= image_tag group_icon(@group), class: "avatar group-avatar s70"
.group-info
.cover-title