您还没有创建班级,只有 <%= 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' %>,谢谢啦!
<%=@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 %>
<%= 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', :activity_id => @syllabus.id} %>
<% 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 %>