2016-10-27 14:57:12 +08:00
|
|
|
<ul class="ml10">
|
2016-10-27 11:16:51 +08:00
|
|
|
<% comments.each do |comment| %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
showNormalImage('reply_content_<%= comment.id %>');
|
|
|
|
autoUrl('reply_content_<%= comment.id %>');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<li class="reply-container" 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="reply-content ml10" onmouseover="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').show();" onmouseout="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').hide();">
|
2016-10-27 14:57:12 +08:00
|
|
|
<%= render :partial => 'projects/project_issue_contents', :locals => {:comment => comment}%>
|
2016-10-27 11:16:51 +08:00
|
|
|
|
|
|
|
<% if !comment.content_detail.blank? || comment.class == Journal %>
|
|
|
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
|
|
|
|
<% if comment.class == Journal %>
|
|
|
|
<% if comment.details.any? %>
|
|
|
|
<% details_to_strings(comment.details).each do |string| %>
|
|
|
|
<p><%= string %></p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<P><%= comment.notes.html_safe %></P>
|
|
|
|
<% else %>
|
|
|
|
<%= comment.content_detail.html_safe %>
|
|
|
|
<% end %>
|
|
|
|
</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},
|
|
|
|
:remote => true,
|
|
|
|
:method => 'get',
|
|
|
|
:title => l(:button_reply)) %>
|
|
|
|
<span id="reply_iconup_<%= comment.id %>" class="reply_iconup02" style="display: none"> ︿</span>
|
|
|
|
</span>
|
2016-10-27 14:57:12 +08:00
|
|
|
<%= link_to(
|
|
|
|
l(:button_delete),
|
|
|
|
{:controller => 'issues',:action => 'delete_journal', :id => activity_id,:journal_id=>comment.id, :user_activity_id => user_activity_id},
|
|
|
|
:method => 'get',
|
|
|
|
:confirm => l(:text_are_you_sure),
|
|
|
|
:remote=>true,
|
|
|
|
:id => "delete_reply_#{activity_id}_#{comment.id}",
|
|
|
|
:class => 'fr mr20 undis',
|
|
|
|
:title => l(:button_delete)
|
|
|
|
) if comment.user_id == User.current.id %>
|
|
|
|
|
2016-10-27 11:16:51 +08:00
|
|
|
</span>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p id="reply_message_<%= comment.id%>"></p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|