27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
|
<div class="orig_cont clearfix">
|
|||
|
<% unless comment.parent.nil? %>
|
|||
|
<div id="comment_reply_<%=comment.id %>">
|
|||
|
<%=render :partial => 'users/comment_reply', :locals => {:comment => comment.parent} %>
|
|||
|
</div>
|
|||
|
<% end %>
|
|||
|
<!--<span id="reply_praise_count_<%#=comment.id %>" class="orig_index">
|
|||
|
<%# if comment.user == User.current %>
|
|||
|
<span class="fr likeButton" title="不能自己赞自己哦!"> <span class="likeText">赞</span><span class="likeNum"><%#= get_praise_num(comment) > 0 ? "(#{get_praise_num(comment)})" : "" %></span></span>
|
|||
|
<%# else %>
|
|||
|
<%#=render :partial=> "praise_tread/praise", :locals => {:activity=>comment, :user_activity_id=>comment.id,:type=>"reply"}%>
|
|||
|
<%# end %>
|
|||
|
</span>-->
|
|||
|
<div class="orig_user fl">
|
|||
|
<%= link_to image_tag(url_to_avatar(comment.user), :width => "33", :height => "33"), user_path(comment.user_id), :alt => "用户头像" %>
|
|||
|
</div>
|
|||
|
<div class="orig_right fl">
|
|||
|
<% 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 %>
|
|||
|
<span class="orig_area"><%= time_from_now(comment.created_on) %></span>
|
|||
|
<div class="orig_content "><%= comment.notes.html_safe %></div>
|
|||
|
</div>
|
|||
|
<div class="cl"></div>
|
|||
|
</div>
|