From b71b62581200e843975518ba830392fd724904f5 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 25 Feb 2013 17:11:18 +0600 Subject: [PATCH] #946 add forgot url to avatars --- .../activity_feeds/partials/_build_list_notification.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/activity_feeds/partials/_build_list_notification.haml b/app/views/activity_feeds/partials/_build_list_notification.haml index 1870a63d6..9f1594004 100644 --- a/app/views/activity_feeds/partials/_build_list_notification.haml +++ b/app/views/activity_feeds/partials/_build_list_notification.haml @@ -1,6 +1,6 @@ +-user= User.where(:email => user_email).first || User.new(:email => user_email) if defined?(user_email) .top - .image - = image_tag(avatar_url_by_email(user_email, :small), :alt => 'avatar') + .image= link_to(image_tag(avatar_url(user, :small), :alt => 'avatar'), user_path(user)) if user.persisted? .text %span = raw t('notifications.bodies.build_task', :task_num => task_num, :task_link => build_list_path(build_list_id))