summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArinde Eniola <eniolaarinde1@gmail.com>2016-04-25 10:54:48 +0100
committerArinde Eniola <eniolaarinde1@gmail.com>2016-04-25 13:13:43 +0100
commit0c0f634050ad79fcb9f9a340d56e2f5c5d407080 (patch)
tree8e10970716fb154851928f66d793e002d77f53c0
parentbe85fde6632d1058c17cb3083fa6a9b54fc9871c (diff)
downloadgitlab-ce-link_user_avatar_in_activity_page_to_profile.tar.gz
link user avatar in activity page to user profilelink_user_avatar_in_activity_page_to_profile
-rw-r--r--app/views/events/_event.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/events/_event.html.haml b/app/views/events/_event.html.haml
index 4d20dd5830e..5d622582088 100644
--- a/app/views/events/_event.html.haml
+++ b/app/views/events/_event.html.haml
@@ -4,7 +4,12 @@
#{time_ago_with_tooltip(event.created_at)}
= cache [event, current_application_settings, "v2.2"] do
- = image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
+ - if event.author
+ = link_to user_path(event.author.username) do
+ = image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
+ - else
+ = image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
+
- if event.created_project?
= render "events/event/created_project", event: event
- elsif event.push?