课程留言动态的显示
This commit is contained in:
parent
a7c006c59f
commit
7ce8e330c3
|
@ -26,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% count=course.journals_for_messages.where('m_parent_id IS NULL').count %>
|
<% count = fetch_user_leaveWord_reply(activity).count %>
|
||||||
<div class="homepagePostReply">
|
<div class="homepagePostReply">
|
||||||
<div class="topBorder" style="display: <%= count>0 ? 'none': '' %>"></div>
|
<div class="topBorder" style="display: <%= count>0 ? 'none': '' %>"></div>
|
||||||
<div class="homepagePostReplyBanner" style="display: <%= count>0 ? '': 'none' %>">
|
<div class="homepagePostReplyBanner" style="display: <%= count>0 ? '': 'none' %>">
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<% if count > 0 %>
|
<% if count > 0 %>
|
||||||
<div class="" id="reply_div_<%= user_activity_id %>">
|
<div class="" id="reply_div_<%= user_activity_id %>">
|
||||||
<ul>
|
<ul>
|
||||||
<% course.journals_for_messages.where('m_parent_id IS NULL').reorder("created_on desc").each do |comment| %>
|
<% fetch_user_leaveWord_reply(activity).each do |comment| unless fetch_user_leaveWord_reply(activity).nil? %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
showNormalImage('reply_content_<%= comment.id %>');
|
showNormalImage('reply_content_<%= comment.id %>');
|
||||||
|
@ -68,44 +68,13 @@
|
||||||
<%= format_time(comment.created_on) %>
|
<%= format_time(comment.created_on) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
|
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
|
||||||
<%= comment.notes.html_safe %></div>
|
<%= comment.notes.html_safe %>
|
||||||
<% fetch_user_leaveWord_reply(comment).each do |reply| unless fetch_user_leaveWord_reply(comment).nil? %>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
showNormalImage('reply_to_content_<%= reply.id %>');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<div class="recall">
|
|
||||||
<div class="homepagePostReplyPortrait">
|
|
||||||
<%= link_to image_tag(url_to_avatar(reply.user), :width => "33", :height => "33", :class =>"mt8"), user_path(reply.user_id), :alt => "用户头像" %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostReplyjournal">
|
|
||||||
<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 %>
|
|
||||||
<%= l(:label_reply_to)%>
|
|
||||||
<% if comment.try(:user).try(:realname) == ' ' %>
|
|
||||||
<%= link_to comment.try(:user), user_path(comment.user_id), :class => "newsBlue mr10 f14 ml10" %>
|
|
||||||
<% else %>
|
|
||||||
<%= link_to comment.try(:user).try(:realname), user_path(comment.user_id), :class => "newsBlue mr10 f14 ml10" %>
|
|
||||||
<% end %>
|
|
||||||
<%= format_time reply.created_on %>
|
|
||||||
</div>
|
|
||||||
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" style="max-width: 580px;" id="reply_to_content_<%= reply.id %>">
|
|
||||||
<%= reply.notes.html_safe %></div>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue