<% if reply.try(:user).try(:realname) == ' ' %>
<%= link_to reply.try(:user), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
<% else %>
<%= link_to reply.try(:user).try(:realname), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
<% end %>
<%= format_time(reply.created_on) %>
<% if reply.user == User.current %>
赞<%= get_praise_num(reply) > 0 ? "(#{get_praise_num(reply)})" : "" %>
<% else %>
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>reply, :user_activity_id=>reply.id,:type=>"reply"}%>
<% end %>
<% if reply.details.any? %>
<% details_to_strings(reply.details).each do |string| %>
<%= string %>
<% end %>
<% end %>
<%= reply.notes.html_safe %>