|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
<% linkPath = course_endTime_timeout?(course) ? restartcourse_course_path(course) : finishcourse_course_path(course, format: :js) %>
|
|
|
|
|
<% desc = course_endTime_timeout?(course) ? '重启' : '关闭' %>
|
|
|
|
|
|
|
|
|
|
<%= link_to "#{desc}课程", linkPath, :remote => true, :method => :post, :id => id, :confirm => ("确定要#{desc}课程?") %>
|
|
|
|
|
<%= link_to "#{desc}", linkPath, :remote => true, :method => :post, :id => id, :confirm => ("确定要#{desc}课程?") %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<!-- 关闭课程block -->
|
|
|
|
|
<% end %>
|
|
|
|
|