<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <% 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 %> <% 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/news_replies', :locals => {:comments => comments, :type => 'Syllabus'} %>
<% 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 %>