|
|
@ -6,7 +6,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<% replies_all_i=replies_all_i + 1 %>
|
|
|
|
<% replies_all_i=replies_all_i + 1 %>
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" >
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" onmouseover="$('#reply_edit_menu_<%= reply.id%>').show();" onmouseout="$('#reply_edit_menu_<%= reply.id%>').hide();" >
|
|
|
|
<div class="homepagePostReplyPortrait" >
|
|
|
|
<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(reply.user), :width => "33", :height => "33"), user_path(reply.user_id), :alt => "用户头像" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -27,6 +27,26 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<P><%= reply.notes.html_safe %></P>
|
|
|
|
<P><%= reply.notes.html_safe %></P>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="margin-top: 7px">
|
|
|
|
|
|
|
|
<div class="fr" id="reply_edit_menu_<%= reply.id%>" style="display: none">
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
l(:button_reply),
|
|
|
|
|
|
|
|
{:controller => 'issues',:action => 'reply',:user_id=>reply.user_id, :id => issue.id,:journal_id=>reply.id},
|
|
|
|
|
|
|
|
:remote => true,
|
|
|
|
|
|
|
|
:method => 'get',
|
|
|
|
|
|
|
|
:class => 'fr newsBlue',
|
|
|
|
|
|
|
|
:title => l(:button_reply)) if User.current.logged? %>
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
l(:button_delete),
|
|
|
|
|
|
|
|
{:controller => 'issues',:action => 'delete_journal', :id => issue.id,:journal_id=>reply.id},
|
|
|
|
|
|
|
|
:method => :get,
|
|
|
|
|
|
|
|
:remote=>true,
|
|
|
|
|
|
|
|
:class => 'fr newsGrey mr10',
|
|
|
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
|
|
|
) if reply.user_id == User.current.id %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|