Merge branch 'szzh' into develop

This commit is contained in:
sw 2015-06-01 11:13:01 +08:00
commit 742ac5e7db
1 changed files with 2 additions and 2 deletions

View File

@ -3,14 +3,14 @@
<%=link_to l(:label_my_course), user_courses_user_path(User.current.id) %>
<ul class="course_sub_menu">
<% course_index = 0 %>
<% cache User.current.courses.count do%>
<% User.current.courses.each do |course| %>
<% if !course_endTime_timeout?(course) %>
<%= render :partial => 'layouts/user_homework_list', :locals => {:course => course,:course_index => course_index} %>
<% course_index += 1 %>
<% end %>
<% end %>
<% end %>
</ul>
</li>
<% end %>