socialforge/app/views/courses/_set_course_time.html.erb

10 lines
439 B
Plaintext
Raw Normal View History

<%
id = "finish_course_tag"
%>
<% if course_endTime_timeout?(project) #如果课程已结束%>
<%= link_to '重启课程', restartcourse_project_path(project), :remote => true, :method => :post, :id => id, :confirm => ('确定要重启课程?') %>
<% else %>
<%= link_to '关闭课程', finishcourse_project_path(project), :remote => true, :method => :post, :id => id, :confirm => ('确定要关闭课程?') %>
<% end %>