课程列表已关闭课程标识出来

This commit is contained in:
sw 2015-08-24 15:18:07 +08:00
parent 7f2f2c5d40
commit fe91442c96
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<% courses.each do |course|%> <% courses.each do |course|%>
<li class="homepageLeftMenuCoursesLine"> <li class="homepageLeftMenuCoursesLine">
<%= link_to course.name, course_path(course.id,:host=>Setting.host_course), :class => "coursesLineGrey"%> <%= link_to (course_endTime_timeout?(course) ? "[已关闭]&nbsp;#{course.name}" : "#{course.name}").html_safe, course_path(course.id,:host=>Setting.host_course), :class => "coursesLineGrey"%>
</li> </li>
<% end %> <% end %>