2846 公共贴吧没有最后回复人就不显示最后回复

This commit is contained in:
sw 2015-04-09 14:46:05 +08:00
parent 4fbbd7ceb7
commit dbc7c7a5c6
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@
<tr>
<td align="left" colspan="2" ><span class="font_lighter"><%= authoring topic.created_at, topic.author %>
<span class="font_description2">
最后回复:<%=link_to_user topic.last_reply.try(:author) %>
<% author = topic.last_reply.try(:author)%>
<% if author%>
最后回复:<%=link_to_user author %>
<% end%>
</span>
<br />
</span></td>