% exc_course = excellent_course_recommend(course) %> <% unless exc_course.length == 0 %>
<% homework_count = e_course.homework_commons.where("publish_time <= '#{Date.today}'").count %> <% if homework_count > 0 %> 作业<%=homework_count %> <% end %> <% file_count = visable_attachemnts_incourse(e_course).count %> <% if file_count > 0 %> 资源<%=file_count %> <% end %>