|
|
|
@ -82,9 +82,9 @@
|
|
|
|
|
<% if curse_attachments.count == 10%>
|
|
|
|
|
<% if params[:action] == 'search' %>
|
|
|
|
|
<%=link_to "点击展开更多", search_course_files_path({:course_id => course.id,:page => @obj_pages.nil? ? @feedback_pages.page + 1 : @obj_pages.page + 1}.merge(params)),:id => "show_more_attachments",:remote => "true",:class => "loadMore mt10 f_grey" %>
|
|
|
|
|
<%else%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<!-- 全站搜索的时候 返回的页码对象是obj_pages,而站内搜索返回的页码对象是feedback_pages -->
|
|
|
|
|
<%=link_to "点击展开更多", course_files_path({:course_id => course.id,:page => @obj_pages.nil? ? @feedback_pages.page + 1 : @obj_pages.page + 1}.merge(params)),:id => "show_more_attachments",:remote => "true",:class => "loadMore mt10 f_grey" %>
|
|
|
|
|
<%=link_to "点击展开更多", course_files_path(:course_id => course.id, :page => @page), :id => "show_more_attachments",:remote => "true",:class => "loadMore mt10 f_grey" %>
|
|
|
|
|
<%end%>
|
|
|
|
|
<% end%>
|
|
|
|
|
|
|
|
|
|