2014-03-17 22:43:38 +08:00
|
|
|
<%
|
|
|
|
id = "finish_course_tag"
|
|
|
|
%>
|
|
|
|
|
2014-03-19 17:32:32 +08:00
|
|
|
<% if course_endTime_timeout?(project) #如果课程已结束%>
|
|
|
|
<%= link_to '重启课程', restartcourse_project_path(project), :remote => true, :method => :post, :id => id, :confirm => ('确定要重启课程?') %>
|
2014-03-17 22:43:38 +08:00
|
|
|
<% else %>
|
2014-03-19 17:32:32 +08:00
|
|
|
<%= link_to '关闭课程', finishcourse_project_path(project), :remote => true, :method => :post, :id => id, :confirm => ('确定要关闭课程?') %>
|
2014-03-17 22:43:38 +08:00
|
|
|
<% end %>
|