20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
|
<!--<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>
|