|
|
|
@ -24,7 +24,6 @@
|
|
|
|
|
发帖时间:<%= format_time(activity.created_on) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostIntro break_word upload_img" id="activity_description_<%= user_activity_id%>">
|
|
|
|
|
<% if activity.parent_id.nil? %>
|
|
|
|
|
<%= activity.content.to_s.html_safe%>
|
|
|
|
@ -67,21 +66,6 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostReplyInputContainer">
|
|
|
|
|
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
|
|
|
|
<%= form_for('new_form',:url => {:controller=>'messages',:action => 'reply', :id => activity.id, :board_id => activity.board_id, :is_board => 'true'},:method => "post", :remote => true) do |f|%>
|
|
|
|
|
<input type="hidden" name="quote[quote]" value="">
|
|
|
|
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
|
|
|
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
|
|
|
|
<div nhname='toolbar_container_<%= user_activity_id%>' style="float:left;padding-top:3px;"></div>
|
|
|
|
|
<a id="new_message_cancel_btn_<%= user_activity_id%>" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:6px;">取消</a>
|
|
|
|
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr mr5 " style="margin-top:6px;">发送</a>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% activity= activity.parent ? activity.parent : activity%>
|
|
|
|
|
<% replies_all_i = 0 %>
|
|
|
|
|
<% if count > 0 %>
|
|
|
|
@ -91,7 +75,7 @@
|
|
|
|
|
<% replies_all_i=replies_all_i+1 %>
|
|
|
|
|
<li class="homepagePostReplyContainer" nhname="reply_rec" style="display:<%= replies_all_i>2 ? 'none' : '' %>">
|
|
|
|
|
<div class="homepagePostReplyPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.author), :width => "45", :height => "45"), user_path(reply.author_id), :alt => "用户头像" %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.author), :width => "33", :height => "33"), user_path(reply.author_id), :alt => "用户头像" %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyDes">
|
|
|
|
|
<div class="homepagePostReplyPublisher">
|
|
|
|
@ -112,5 +96,25 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostReplyContainer borderBottomNone">
|
|
|
|
|
<div class="homepagePostReplyPortrait mr15"><%= link_to image_tag(url_to_avatar(activity.author), :width => "33", :height => "33"), user_path(activity.author_id), :alt => "用户头像" %></div>
|
|
|
|
|
<div class="homepagePostReplyInputContainer">
|
|
|
|
|
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
|
|
|
|
<%= form_for('new_form',:url => {:controller=>'messages',:action => 'reply', :id => activity.id, :board_id => activity.board_id, :is_board => 'true'},:method => "post", :remote => true) do |f|%>
|
|
|
|
|
<input type="hidden" name="quote[quote]" value="">
|
|
|
|
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
|
|
|
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="margin-top:6px;">发送</a>
|
|
|
|
|
<div nhname='toolbar_container_<%= user_activity_id%>' style="float:left; margin-left: 5px; padding-top:3px;"></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
|
|
|
|
<% end%>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|