<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <% end %>
<% if User.current == @syllabus.user && @syllabus.courses.empty? %>

您还没有创建班级,只有 <%= link_to "创建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "linkBlue2", :target => '_blank'%> 后才可以开展在线教学哦~

<% end %> <% if @syllabus.des_status == 0 && User.current == @syllabus.user %>

您建立的课程尚未填写课程大纲,请完善您的 <%=link_to '课程大纲', edit_syllabus_path(@syllabus), :class => 'sy_corange' %>,谢谢啦!

<% elsif @syllabus.des_status == 0 %>

该课程尚未填写课程大纲,敬请期待!

<% else %>
<%=@syllabus.description.html_safe %>
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @syllabus} %>
<% if User.current.logged? && User.current == @syllabus.user%>
    • <%=link_to '编辑', edit_syllabus_path(@syllabus), :class => 'postOptionLink'%>
    • <%=link_to '删除', delete_des_syllabus_path(@syllabus), :class => 'postOptionLink', :confirm => l(:text_are_you_sure)%>
<% end %>
更新时间:<%=format_time @syllabus.updated_at %>
<% end %>
<%=render :partial => 'syllabuses/syllabus_post_reply', :locals => {:activity => @syllabus, :user_activity_id => @syllabus.id} %>