<% exc_course = excellent_course_recommend(course) %>
<% unless exc_course.length == 0 %>
    <ul class="sy_class_lclass">
      <% exc_course.each_with_index do |e_course, i| %>
          <li>
            <span class="sy_sq_orange fl mr5 mt5"><%= i+1 %></span>
            <div class="fl" style="width:185px;">
              <%= link_to e_course.syllabus.title, syllabus_path(e_course.syllabus_id), :target => '_blank', :class => "sy_class_ltitle"%>
              &nbsp;<font class="fb c_grey">·</font>&nbsp;
              <%=link_to e_course.name, course_path(e_course.id), :class => "sy_class_ltitle mb10" %>
            </div>
            <div class="cl"></div>
            <p class="sy_cgrey ml20">
              <% homework_count = e_course.homework_commons.where("publish_time <= '#{Date.today}'").count %>
              <% if homework_count > 0 %>
                作业<span class="sy_cir_grey ml5 mr5"><%=homework_count %></span>
              <% end %>
              <% file_count = visable_attachemnts_incourse(e_course).count %>
              <% if file_count > 0 %>
                资源<span class="sy_cir_grey ml5 mr5"><%=file_count %></span>
              <% end %>
            </p>
          </li>
      <% end %>
    </ul>
<% end %>

