修复没有课程的学校显示bug
This commit is contained in:
parent
dd64f13e49
commit
6037421c7d
|
@ -101,7 +101,7 @@
|
||||||
<h1></h1>
|
<h1></h1>
|
||||||
<% end %>
|
<% 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(/<\/?.*?>/,"") %>>
|
<li class='<%= cycle("odd", "even") %>' title=<%= course.description.to_s.gsub(/<\/?.*?>/,"") %>>
|
||||||
<div class='avatar'>
|
<div class='avatar'>
|
||||||
<%= image_tag(get_course_avatar(course), :class => "avatar-4") %>
|
<%= image_tag(get_course_avatar(course), :class => "avatar-4") %>
|
||||||
|
|
Loading…
Reference in New Issue