修复没有课程的学校显示bug

This commit is contained in:
chenmin 2014-08-08 15:45:06 +08:00
parent dd64f13e49
commit 6037421c7d
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@
<h1></h1>
<% end %>
<% find_all_new_hot_course(10, @school_id).map do |course| %>
<% find_all_new_hot_course(9, @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") %>