This commit is contained in:
sw 2014-08-08 16:19:58 +08:00
commit db826a71ff
1 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@
</ul>
</div>
<% else %>
<% if school_course.count < 9 %>
<% if school_course.count < 10 %>
<span>
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %>
</span>
@ -181,7 +181,7 @@
</li>
<%end%>
<% end; reset_cycle %>
<% if school_course.count < 9 %>
<% if school_course.count < 10 %>
<li>
<h1></h1>
@ -189,7 +189,7 @@
该学校开设课程较少,您可以查看其他学校课程
</p>
</li>
<% find_all_new_hot_course(9 - school_course.count, @school_id).map do |course| %>
<% find_all_new_hot_course(10 - school_course.count, @school_id).map do |course| %>
<li class='<%= cycle("odd", "even") %>' title=<%= course.description.to_s.gsub(/<\/?.*?>/,"") %>>
<div class='avatar'>
<%= image_tag(get_course_avatar(course), :class => "avatar-4") %>