<%# course_model %> <% course_file_num = visable_attachemnts_incourse(@course).count%> <% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> <% if User.current.admin? || User.current.allowed_to?(:as_teacher,@course) %> <% homework_num = @course.homework_commons.count %> <% else %> <% homework_num = @course.homework_commons.where("publish_time <= '#{Date.today}'").count %> <% end %> <%= h html_title %> <%= csrf_meta_tag %> <%= favicon %> <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= stylesheet_link_tag 'header','jquery/jquery-ui-1.9.2','public', 'leftside','prettify', 'courses','share'%> <%= javascript_include_tag "course","header","attachments",'prettify' %> <%= yield :header_tags -%>
<%=render :partial=>'layouts/project_info' %>
  • <%= l(:label_main_teacher)%> :  <%= link_to(@course.teacher.lastname+@course.teacher.firstname, user_path(@course.teacher), :class => 'c_dblue') %>
  • <%= l(:label_class_period)%> :  <%= @course.class_period %> <%= l(:label_class_hour) %>
  • <%= l(:label_main_term)%> :  <%= current_time_and_term @course %>
  • <% if @course.school%>
  • <%= l(:label_course_organizers)%> :  <%= @course.school%>
  • <% end%>
<%# 课程活跃度 %>
<%= render :partial => 'courses/course_activity_users', :locals => {:course => @course} %> <%# 课程英雄榜 %> <%= render :partial => 'courses/course_heroes', :locals => {:course => @course} %> <% if @course.description && !@course.description.blank? %>

<%= l(:label_course_brief_introduction)%>:

<%= textilizable(@course.description) if @course.description && !@course.description.blank? %>
<%= l(:label_expend_information)%>
<% end %>

<%= l(:label_tag)%>:

<%= render :partial => 'tags/new_tag', :locals => {:obj => @course, :object_flag => "9"} %>
<%= render :partial => 'courses/recommendation', :locals => {:course => @course} %>
访问计数 <%= @course.visits.to_i %>
<%= yield %> <%#= render_flash_messages %> <%#= call_hook :view_layouts_base_content %>
<%= render :partial => 'layouts/footer' %>
<%= render :partial => 'layouts/new_feedback' %> <%= call_hook :view_layouts_base_body_bottom %>