2015-08-24 14:44:22 +08:00
|
|
|
<% courses.each do |course|%>
|
|
|
|
<li class="homepageLeftMenuCoursesLine">
|
2015-08-24 17:04:40 +08:00
|
|
|
<%= link_to (course_endTime_timeout?(course) ? "[已关闭] #{course.name}" : "#{course.name}").html_safe, course_path(course.id,:host=>Setting.host_course), :class => "coursesLineGrey hidden", :title => course.name%>
|
2015-08-24 14:44:22 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if courses.size == 5%>
|
|
|
|
<li class="homepageLeftMenuMore" id="user_show_more_course">
|
|
|
|
<input type="hidden" value="<%= page%>" id="course_page_num">
|
|
|
|
<a href="javascript:void(0);" class="homepageLeftMenuMoreIcon" onclick="show_more_course('<%= user_courses4show_user_path(user.id)%>');"></a>
|
|
|
|
</li>
|
|
|
|
<% end%>
|