<%= link_to image_tag(url_to_avatar(topic.author), :width => 50,:height => 50,:alt => '贴吧图片'), user_path(topic.author) if topic.author%>
<%= link_to (topic.replies_count), forum_memo_path(topic.forum, topic),:target =>'_blank',:class=>'linkGrey2' %>
<%= get_praise_num(topic)%>
<%= topic.content.html_safe%>
<% author = topic.last_reply.try(:author)%>
<% if author%>
<%= format_date(topic.last_reply.created_at)%>
<% end%>
更新时间:<%= format_date(topic.updated_at)%>
<% end %>