bring back sender avatar

This commit is contained in:
Benjamin Neff 2016-09-01 00:55:30 +02:00 committed by Steffen van Bergerem
parent 575748169e
commit 364502a134
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0

View file

@ -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;"> <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%"> <tr width="100%">
<% if @sender %> <% if @notification.try(:sender) %>
<td style="vertical-align:top;" width="80px"> <td style="vertical-align:top;" width="60px">
<div style="background-color:#eee;height:70px;width:70px;"> <div style="background-color:#eee; height:50px; width:50px;">
<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"> <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> </div>
</td> </td>
<% end %> <% end %>