留言内容无法展开、收起
This commit is contained in:
parent
28ee609eed
commit
795917688c
|
@ -14,13 +14,23 @@
|
||||||
<% course=Course.find(activity.jour_id) %>
|
<% course=Course.find(activity.jour_id) %>
|
||||||
<%= link_to course.name.to_s+" | 课程留言", course_feedback_path(course), :class => "newsBlue ml15" %>
|
<%= link_to course.name.to_s+" | 课程留言", course_feedback_path(course), :class => "newsBlue ml15" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostTitle break_word list_style upload_img">
|
<!--<div class="homepagePostTitle break_word list_style upload_img">
|
||||||
<% if activity.parent %>
|
<%# if activity.parent %>
|
||||||
<%= link_to activity.parent.notes.html_safe, course_feedback_path(course), :class => "postGrey" %>
|
<%#= link_to activity.parent.notes.html_safe, course_feedback_path(course), :class => "postGrey" %>
|
||||||
<% else %>
|
<%# else %>
|
||||||
<%= link_to activity.notes.html_safe, course_feedback_path(course), :class => "postGrey" %>
|
<%#= link_to activity.notes.html_safe, course_feedback_path(course), :class => "postGrey" %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
</div>
|
</div>-->
|
||||||
|
<% if activity.parent %>
|
||||||
|
<% content = activity.parent.notes %>
|
||||||
|
<% else %>
|
||||||
|
<% content = activity.notes %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>content} %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div id="intro_content_show_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[展开]</a></div>
|
||||||
|
<div id="intro_content_hide_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[收起]</a></div>
|
||||||
|
<div class="cl"></div>
|
||||||
<div class="homepagePostDate fl">
|
<div class="homepagePostDate fl">
|
||||||
留言时间:<%= format_time(activity.created_on) %>
|
留言时间:<%= format_time(activity.created_on) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,22 +16,26 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% if is_activity.to_i == 1 %>
|
<%# if is_activity.to_i == 1 %>
|
||||||
<div class="homepagePostTitle break_word list_style upload_img">
|
<!--<div class="homepagePostTitle break_word list_style upload_img">
|
||||||
<% if activity.parent %>
|
<%# if activity.parent %>
|
||||||
<%= link_to activity.parent.notes.html_safe, feedback_path(activity.jour, :host=> Setting.host_user), :class => "postGrey" %>
|
<%#= link_to activity.parent.notes.html_safe, feedback_path(activity.jour, :host=> Setting.host_user), :class => "postGrey" %>
|
||||||
<% else %>
|
<%# else %>
|
||||||
<%= link_to activity.notes.html_safe, feedback_path(activity.jour, :host=> Setting.host_user), :class => "postGrey" %>
|
<%#= link_to activity.notes.html_safe, feedback_path(activity.jour, :host=> Setting.host_user), :class => "postGrey" %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
</div>
|
</div>-->
|
||||||
<% else %>
|
<%# else %>
|
||||||
<% if activity.parent %>
|
<% if activity.parent %>
|
||||||
<% content = activity.parent.notes %>
|
<% content = activity.parent.notes %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% content = activity.notes %>
|
<% content = activity.notes %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>content} %>
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>content} %>
|
||||||
<% end %>
|
<div class="cl"></div>
|
||||||
|
<div id="intro_content_show_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[展开]</a></div>
|
||||||
|
<div id="intro_content_hide_<%= user_activity_id%>" class="fr" style="display:none;"><a href="javascript:void(0);" class="linkBlue">[收起]</a></div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<%# end %>
|
||||||
<div class="homepagePostDate fl">
|
<div class="homepagePostDate fl">
|
||||||
留言时间:<%= format_time(activity.created_on) %>
|
留言时间:<%= format_time(activity.created_on) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue