<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <% end %>

课程信息

<% if @syllabus.des_status == 1 && @syllabus.courses.empty? %>
<% if User.current == @syllabus.user %>

您建立的课程还未创建班级,请 <%= link_to "新建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "syllabusbox_a_blue", :target => '_blank'%>

<% elsif User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%>

本课程下还未创建班级,请 <%= link_to "新建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "syllabusbox_a_blue", :target => '_blank'%>

<% else %>

本课程下还未创建班级,敬请期待。

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

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

<% else %>

<%=@syllabus.user.show_name %>老师尚未完成课程大纲的编写,敬请期待。

<% end %> <% else %>
<%=@syllabus.description.html_safe %>
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @syllabus} %>
<% if User.current.logged? && User.current == @syllabus.user%>
<% end %>
更新时间:<%=format_time @syllabus.updated_at %>
<% end %> <% count=@syllabus.journals_for_messages.count %>
<%= render :partial => 'users/reply_banner', :locals => {:count => count, :activity => @syllabus, :user_activity_id => @syllabus.id} %> <% comments = @syllabus.journals_for_messages.reorder("created_on desc").limit(3) %> <% if count > 0 %>
<%= render :partial => 'users/all_replies', :locals => {:comments => comments}%>
<% end %>
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %>
<% if User.current.logged? %>
<%= form_for('new_form',:url => {:controller => 'words', :action => 'leave_syllabus_message', :id => @syllabus.id},:method => "post") do |f|%>

<% end%>
<% else %> <%= render :partial => "users/show_unlogged" %> <% end %>