|
|
|
@ -39,6 +39,22 @@
|
|
|
|
|
更新时间:<%= format_time(PrincipalActivity.where("principal_act_type='#{activity.class}' and principal_act_id =#{activity.id}").first.updated_at) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% if activity.user == User.current || User.current.admin?%>
|
|
|
|
|
<div class="homepagePostSetting">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to(l(:label_bid_respond_delete),
|
|
|
|
|
{:controller => 'words', :action => 'destroy', :object_id => activity, :user_id => activity.user,:user_activity_id => user_activity_id,:is_activity=>is_activity},
|
|
|
|
|
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete',
|
|
|
|
|
:class => "postOptionLink", :title => l(:button_delete)) %>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
@ -71,7 +87,7 @@
|
|
|
|
|
<ul>
|
|
|
|
|
<% fetch_user_leaveWord_reply(activity).reorder("created_on desc").each do |comment| %>
|
|
|
|
|
<% replies_all_i = replies_all_i + 1 %>
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" style="display:<%= replies_all_i > 3 ? 'none' : '' %>">
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" onmouseover="$('#message_delete_<%= comment.id%>').show();" onmouseout="$('#message_delete_<%= comment.id%>').hide();" style="display:<%= replies_all_i > 3 ? 'none' : '' %>">
|
|
|
|
|
<div class="homepagePostReplyPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(comment.user), :width => "33", :height => "33", :class =>"mt8"), user_path(comment.user_id), :alt => "用户头像" %>
|
|
|
|
|
</div>
|
|
|
|
@ -90,6 +106,14 @@
|
|
|
|
|
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>comment, :user_activity_id=>comment.id,:type=>"reply"}%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
<div id="message_delete_<%=comment.id %>" style="display: none" class="mr10 fr">
|
|
|
|
|
<% if comment.user == User.current|| User.current.admin? %>
|
|
|
|
|
<%= link_to(l(:label_bid_respond_delete),
|
|
|
|
|
{:controller => 'words', :action => 'destroy', :object_id => comment, :user_id => comment.user,:user_activity_id => user_activity_id,:is_activity=>is_activity},
|
|
|
|
|
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete',
|
|
|
|
|
:class => "delete", :title => l(:button_delete)) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= user_activity_id %>">
|
|
|
|
|
<%= comment.notes.html_safe %>
|
|
|
|
@ -112,7 +136,6 @@
|
|
|
|
|
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => activity.id %>
|
|
|
|
|
<%= hidden_field_tag 'show_name',params[:show_name],:value =>true %>
|
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>user_activity_id %>
|
|
|
|
|
<%= hidden_field_tag 'reply_type',params[:reply_type],:value =>'user' %>
|
|
|
|
|
<%= hidden_field_tag 'is_activity',params[:is_activity],:value =>is_activity %>
|
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="user_notes"></textarea>
|
|
|
|
|
<div nhname='toolbar_container_<%= user_activity_id%>' style="float:left;padding-top:3px; margin-left: 5px;"></div>
|
|
|
|
|