|
|
|
@ -1,55 +1,55 @@
|
|
|
|
|
<ul>
|
|
|
|
|
<% issue.journals.reorder("created_on desc").each do |reply| %>
|
|
|
|
|
<% issue.journals.reorder("created_on desc").each do |comment| %>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
showNormalImage('reply_content_<%= reply.id %>');
|
|
|
|
|
autoUrl('reply_content_<%= reply.id %>');
|
|
|
|
|
showNormalImage('reply_content_<%= comment.id %>');
|
|
|
|
|
autoUrl('reply_content_<%= comment.id %>');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<% replies_all_i=replies_all_i + 1 %>
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" onmouseover="$('#reply_edit_menu_<%= reply.id%>').show();" onmouseout="$('#reply_edit_menu_<%= reply.id%>').hide();" >
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec">
|
|
|
|
|
<div class="homepagePostReplyPortrait" >
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.user), :width => "33", :height => "33"), user_path(reply.user_id), :alt => "用户头像" %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(comment.user), :width => "33", :height => "33"), user_path(comment.user_id), :alt => "用户头像" %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyDes">
|
|
|
|
|
<div class="homepagePostReplyPublisher">
|
|
|
|
|
<% if reply.try(:user).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to reply.try(:user), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to reply.try(:user).try(:realname), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%#= format_time(reply.created_on) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= reply.id %>">
|
|
|
|
|
<% if reply.details.any? %>
|
|
|
|
|
<% details_to_strings(reply.details).each do |string| %>
|
|
|
|
|
<%= render :partial => 'users/news_contents', :locals => {:comment => comment}%>
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
|
|
|
|
|
<% if comment.details.any? %>
|
|
|
|
|
<% details_to_strings(comment.details).each do |string| %>
|
|
|
|
|
<p><%= string %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<P><%= reply.notes.html_safe %></P>
|
|
|
|
|
<P><%= comment.notes.html_safe %></P>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 7px">
|
|
|
|
|
<%= format_time(reply.created_on) %>
|
|
|
|
|
<div class="fr" id="reply_edit_menu_<%= reply.id%>" style="display: none">
|
|
|
|
|
<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 => 'issues', :action => 'reply', :user_id => reply.user_id, :id => issue.id, :journal_id => reply.id},
|
|
|
|
|
{:controller => 'issues', :action => 'reply', :user_id => comment.user_id, :id => issue.id, :journal_id => comment.id},
|
|
|
|
|
:remote => true,
|
|
|
|
|
:method => 'get',
|
|
|
|
|
:class => 'fr newsBlue',
|
|
|
|
|
:title => l(:button_reply)) if User.current.logged? %>
|
|
|
|
|
:title => l(:button_reply)) %>
|
|
|
|
|
<span id="reply_iconup_<%= comment.id %>" class="reply_iconup02" style="display: none"> ︿</span>
|
|
|
|
|
</span>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_delete),
|
|
|
|
|
{:controller => 'issues',:action => 'delete_journal', :id => issue.id,:journal_id=>reply.id},
|
|
|
|
|
{:controller => 'issues',:action => 'delete_journal', :id => issue.id,:journal_id=>comment.id},
|
|
|
|
|
:method => :get,
|
|
|
|
|
:remote=>true,
|
|
|
|
|
:class => 'fr newsGrey mr10',
|
|
|
|
|
:class => 'fr mr20',
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
) if reply.user_id == User.current.id %>
|
|
|
|
|
) if comment.user_id == User.current.id %>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<p id="reply_message_<%= reply.id%>"></p>
|
|
|
|
|
<p id="reply_message_<%= comment.id%>"></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
@ -65,8 +65,6 @@
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<div nhname='new_message_<%= @issue.id %>' style="display:none;">
|
|
|
|
|
<%= form_for('new_form',:url => add_journal_issue_path(@issue.id),:method => "post", :remote => true) do |f| %>
|
|
|
|
|
<%#= kindeditor_tag :notes,"",:height=>"33",:minHeight=>"33",:editor_id=>"issues_reply_editor"%>
|
|
|
|
|
<!--<div class="cl"></div>-->
|
|
|
|
|
<input type="hidden" name="issue_id" value="<%=@issue.id%>"/>
|
|
|
|
|
<div nhname='toolbar_container_<%= @issue.id %>' ></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -83,7 +81,6 @@
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= render :partial => "users/show_unlogged" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!--<a href="javascript:void(0);" onclick="issues_reply_editor.sync();$(this).parent().submit();" class="homepagePostReplySubmit postReplySubmit fl mt5">发送</a>-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|