Merge branch 'szzh' into develop
This commit is contained in:
commit
742ac5e7db
|
@ -3,14 +3,14 @@
|
||||||
<%=link_to l(:label_my_course), user_courses_user_path(User.current.id) %>
|
<%=link_to l(:label_my_course), user_courses_user_path(User.current.id) %>
|
||||||
<ul class="course_sub_menu">
|
<ul class="course_sub_menu">
|
||||||
<% course_index = 0 %>
|
<% course_index = 0 %>
|
||||||
<% cache User.current.courses.count do%>
|
|
||||||
<% User.current.courses.each do |course| %>
|
<% User.current.courses.each do |course| %>
|
||||||
<% if !course_endTime_timeout?(course) %>
|
<% if !course_endTime_timeout?(course) %>
|
||||||
<%= render :partial => 'layouts/user_homework_list', :locals => {:course => course,:course_index => course_index} %>
|
<%= render :partial => 'layouts/user_homework_list', :locals => {:course => course,:course_index => course_index} %>
|
||||||
<% course_index += 1 %>
|
<% course_index += 1 %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue