|
|
|
@ -5,8 +5,15 @@
|
|
|
|
|
<li>
|
|
|
|
|
<span class="sy_sq_orange fl mr5 mt5"><%= i+1 %></span>
|
|
|
|
|
<%=link_to e_course.name, course_path(e_course.id), :class => "sy_class_ltitle fl mb10" %>
|
|
|
|
|
<p class="sy_cgrey ml20">作业<span class="sy_cir_grey ml5 mr5"><%=e_course.homework_commons.where("publish_time <= '#{Date.today}'").count %></span>
|
|
|
|
|
资源<span class="sy_cir_grey ml5 mr5"><%=visable_attachemnts_incourse(e_course).count %></span>
|
|
|
|
|
<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 %>
|
|
|
|
|