61 lines
3.3 KiB
Plaintext
61 lines
3.3 KiB
Plaintext
|
<ul>
|
||
|
<% comments.each do |comment| %>
|
||
|
<script type="text/javascript">
|
||
|
$(function(){
|
||
|
showNormalImage('reply_content_<%= comment.id %>');
|
||
|
autoUrl('reply_content_<%= comment.id %>');
|
||
|
});
|
||
|
</script>
|
||
|
<li class="homepagePostReplyContainer" nhname="reply_rec">
|
||
|
<div class="homepagePostReplyPortrait">
|
||
|
<%= link_to image_tag(url_to_avatar(comment.creator_user), :width => 33, :height => 33, :alt => "用户头像"), user_url_in_org(comment.creator_user.id) %>
|
||
|
</div>
|
||
|
<div class="homepagePostReplyDes">
|
||
|
<div class="homepagePostReplyPublisher">
|
||
|
<%= link_to comment.creator_user.show_name, user_url_in_org(comment.creator_user.id), :class => "newsBlue mr10 f14" %>
|
||
|
<%= time_from_now(comment.created_on) %>
|
||
|
</div>
|
||
|
<% if !comment.parent.nil? && !comment.parent.parent.nil? %>
|
||
|
<%= render :partial => 'users/message_contents', :locals => {:comment => comment}%>
|
||
|
<% end %>
|
||
|
<% if !comment.content_detail.blank? %>
|
||
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
|
||
|
<%= comment.content_detail.html_safe %>
|
||
|
</div>
|
||
|
<div class="orig_reply mb10 mt-10">
|
||
|
<div class="reply">
|
||
|
<span class="reply-right">
|
||
|
<span id="reply_praise_count_<%=comment.id %>">
|
||
|
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>comment, :user_activity_id=>comment.id,:type=>"reply"}%>
|
||
|
</span>
|
||
|
<span style="position: relative" class="fr mr20">
|
||
|
<%= link_to(
|
||
|
l(:button_reply),
|
||
|
{:controller => 'users' ,:action => 'reply_to', :reply_id => comment.id, :type => type, :user_activity_id => user_activity_id, :activity_id => activity_id, :is_course => is_course, :is_board => is_board},
|
||
|
:remote => true,
|
||
|
:method => 'get',
|
||
|
:title => l(:button_reply)) %>
|
||
|
<span id="reply_iconup_<%=comment.id %>" class="reply_iconup02" style="display: none"> ︿</span>
|
||
|
</span>
|
||
|
<% if comment.course_destroyable_by?(User.current) %>
|
||
|
<%= link_to(
|
||
|
l(:button_delete),
|
||
|
delete_board_message_path(comment,:board_id =>comment.board.id, :user_activity_id => user_activity_id, :activity_id => activity_id, :is_course => is_course, :is_board => is_board),
|
||
|
:method => :post,
|
||
|
:remote => true,
|
||
|
:class => 'fr mr20',
|
||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||
|
:title => l(:button_delete)
|
||
|
) %>
|
||
|
<% end %>
|
||
|
</span>
|
||
|
<div class="cl"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<p id="reply_message_<%= comment.id%>"></p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="cl"></div>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|