消息头像有问题

This commit is contained in:
cxt 2017-03-13 13:48:11 +08:00
parent b1f19ccb5f
commit 2b16c45ff1
1 changed files with 4 additions and 2 deletions

View File

@ -89,11 +89,13 @@
<% elsif ma.contest_message_type == "JoinContest" and ma.status == 2 %>
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<% user = User.find(ma.contest_message_id) %>
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl">
<%= link_to image_tag(url_to_avatar(user), :width => "30", :height => "30"), user_path(user), :target => '_blank' %>
</div>
</li>
<li class="homepageNewsPubType fl">
<% user = User.find(ma.contest_message_id) %>
<span class="newsBlue homepageNewsPublisher">
<%=link_to user.show_name, user_path(user),
:class => "newsBlue homepageNewsPublisher", :target => '_blank' %></span>