<% unless comment.parent.nil? %>
<%=render :partial => 'users/comment_reply', :locals => {:comment => comment.parent} %>
<% end %>
<%= link_to image_tag(url_to_avatar(comment.user), :width => "33", :height => "33"), user_path(comment.user_id), :alt => "用户头像" %>
<% if comment.try(:user).try(:realname) == ' ' %> <%= link_to comment.try(:user), user_path(comment.user_id), :class => "content-username" %> <% else %> <%= link_to comment.try(:user).try(:realname), user_path(comment.user_id), :class => "content-username" %> <% end %> <%= time_from_now(comment.created_on) %>
<%= comment.notes.html_safe %>