diff --git a/app/views/layouts/notifier.html.erb b/app/views/layouts/notifier.html.erb index 1a84624552e08baba825c98e328b0209b8e41bd1..69b0d9a8d1a0e541cc8774ca5f0a958552f88eb9 100644 --- a/app/views/layouts/notifier.html.erb +++ b/app/views/layouts/notifier.html.erb @@ -1,9 +1,10 @@ <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;"> <tr width="100%"> - <% if @sender %> - <td style="vertical-align:top;" width="80px"> - <div style="background-color:#eee;height:70px;width:70px;"> - <img alt="<%=@sender.name%>" src="<%=@sender.profile.image_url(:medium)%>" style="border:0;display:block;display:relative;top:0;left:0;" height="70px" width="70px"> + <% if @notification.try(:sender) %> + <td style="vertical-align:top;" width="60px"> + <div style="background-color:#eee; height:50px; width:50px;"> + <img alt="<%=@notification.sender%>" src="<%=@notification.sender.profile.image_url(:thumb_small)%>" + style="border:0; display:block; top:0; left:0;" height="50px" width="50px"> </div> </td> <% end %>