parent
2545a5a7e0
commit
a76b345495
|
@ -140,8 +140,9 @@
|
|||
<%break if Time.new.strftime("%Y").to_i - year_now >= 2%>
|
||||
<% all_new_hot_course += find_all_new_hot_course(course_count-all_new_hot_course.count, @school_id, year_now, course_term)%>
|
||||
<% end%>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
|
||||
<% cache all_new_hot_course.max().created_at do %>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% else %>
|
||||
|
@ -174,8 +175,9 @@
|
|||
<%break if Time.new.strftime("%Y").to_i - year_now >= 2%>
|
||||
<% all_new_hot_course += find_all_new_hot_course(9-(all_new_hot_course.count + cur_school_course.count), @school_id, year_now, course_term)%>
|
||||
<% end%>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
|
||||
<% cache all_new_hot_course.max().created_at do %>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -192,10 +194,12 @@
|
|||
|
||||
</h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>
|
||||
|
||||
<% topics = find_new_forum_topics(10) %>
|
||||
<%# cache topics.maximum(:created_at) do%>
|
||||
<div class="d-p-projectlist-box">
|
||||
<ul class="d-p-projectlist">
|
||||
<% find_new_forum_topics(10).each do |topic| %>
|
||||
|
||||
<% topics.each do |topic| %>
|
||||
<li class="message-brief-intro" style="min-height: 65px; line-height:2em; border-bottom: 1px dashed; padding-bottom: 3px">
|
||||
<div style="display: inline-block; width: 100%;">
|
||||
<span class="memo_activity text_nowrap" title="<%= topic.subject%>"
|
||||
|
@ -226,8 +230,10 @@
|
|||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<%# end %>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue