讨论区动态宽度扩展
This commit is contained in:
parent
6b04c9144e
commit
45d846ea79
|
@ -86,7 +86,7 @@
|
||||||
<% count = all_replies.count %>
|
<% count = all_replies.count %>
|
||||||
<%# allow_delete = (activity.user == User.current || User.current.admin? || User.current.allowed_to?(:as_teacher,activity.course)) %>
|
<%# allow_delete = (activity.user == User.current || User.current.admin? || User.current.allowed_to?(:as_teacher,activity.course)) %>
|
||||||
<%# count = fetch_user_leaveWord_reply(activity).count %>
|
<%# count = fetch_user_leaveWord_reply(activity).count %>
|
||||||
<div class="homepagePostReply">
|
<div class="container-big-grey">
|
||||||
<%= render :partial => 'projects/project_reply_banner', :locals => {:count => count, :activity => activity, :user_activity_id => user_activity_id,:is_course => is_course,:is_board =>is_board} %>
|
<%= render :partial => 'projects/project_reply_banner', :locals => {:count => count, :activity => activity, :user_activity_id => user_activity_id,:is_course => is_course,:is_board =>is_board} %>
|
||||||
|
|
||||||
<% comments = all_replies[0..2] %>
|
<% comments = all_replies[0..2] %>
|
||||||
|
@ -97,9 +97,9 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !activity.locked? %>
|
<% if !activity.locked? %>
|
||||||
<div class="homepagePostReplyContainer borderBottomNone minHeight48">
|
<div class="reply-container ml15 borderBottomNone minHeight48">
|
||||||
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= user_activity_id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(activity.author_id), :alt => "用户头像" %></div>
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= user_activity_id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(activity.author_id), :alt => "用户头像" %></div>
|
||||||
<div class="homepagePostReplyInputContainer mb10">
|
<div class="reply-content mb10">
|
||||||
<% if User.current.logged? %>
|
<% if User.current.logged? %>
|
||||||
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
<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_course => is_course, :is_board => 'true'},:method => "post", :remote => true) do |f|%>
|
<%= form_for('new_form',:url => {:controller=>'messages',:action => 'reply', :id => activity.id, :board_id => activity.board_id,:is_course => is_course, :is_board => 'true'},:method => "post", :remote => true) do |f|%>
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
autoUrl('reply_content_<%= comment.id %>');
|
autoUrl('reply_content_<%= comment.id %>');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<li class="homepagePostReplyContainer" nhname="reply_rec">
|
<li class="reply-container ml15" nhname="reply_rec">
|
||||||
<div class="homepagePostReplyPortrait">
|
<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) %>
|
<%= 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>
|
||||||
<div class="homepagePostReplyDes" onmouseover="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').show();" onmouseout="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').hide();">
|
<div class="reply-content ml15" onmouseover="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').show();" onmouseout="$('#delete_reply_<%=activity_id %>_<%=comment.id %>').hide();">
|
||||||
<%= render :partial => 'projects/project_message_contents', :locals => {:comment => comment}%>
|
<%= render :partial => 'projects/project_message_contents', :locals => {:comment => comment}%>
|
||||||
|
|
||||||
<% if !comment.content_detail.blank? %>
|
<% if !comment.content_detail.blank? %>
|
||||||
|
|
Loading…
Reference in New Issue