2015-08-24 14:44:22 +08:00
|
|
|
|
<% courses.each do |course|%>
|
|
|
|
|
<li class="homepageLeftMenuCoursesLine">
|
2015-09-01 09:34:03 +08:00
|
|
|
|
<%= link_to course.name, course_path(course.id,:host=>Setting.host_course), :class => "coursesLineGrey hidden #{course_endTime_timeout?(course) ? 'c_dark_grey' : ''}", :title => course.name+"("+course.time.to_s+course.term+")"%>
|
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%>
|