% unless courses.nil? || courses.empty?%>
<% courses.each do |course|%>
-
<%= link_to image_tag(url_to_avatar(Course.find(course.id)), :width => "75", :height => "75",:class=>'searchCourseImage'), course_path(course.id), :alt => "课程图片" %>
-
<% end %>
<% end %>