<%# 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%>
<%# 课程贡献榜 %>
<% unless contributor_course_scor(@course.id).count == 0 %>

    课程活跃度 积分规则

    <% contributor_course_scor(@course.id).each do |contributor_score| %> <% total_score = contributor_score.resource_num.to_i * 5 + contributor_score.message_num.to_i * 2 + contributor_score.message_reply_num.to_i * 1 + contributor_score.journal_num.to_i * 1 + + contributor_score.homework_journal_num.to_i * 1 + contributor_score.news_reply_num.to_i * 1 + contributor_score.news_num.to_i * 1 %> <% unless total_score ==0 %>
  • <%=link_to image_tag(url_to_avatar(contributor_score.user), :width => "35", :height => "35", :class=> "rankPortrait"),user_path(contributor_score.user) %>

    <%=link_to contributor_score.user.show_name, user_path(contributor_score.user), :title => contributor_score.user.show_name %>

    <%=total_score %>

  • <% end %> <% end %>
<% end %> <% hero_homework_scores = hero_homework_score(@course, "desc") %> <% unless hero_homework_scores.map(&:score).detect{|s| s.to_i != 0}.nil? %> <% end %>

<%= l(:label_course_brief_introduction)%>:

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

<%= l(:label_tag)%>:

<%= render :partial => 'tags/new_tag', :locals => {:obj => @course, :object_flag => "9"} %>
<%= render :partial => 'courses/recommendation', :locals => {:course => @course} %>
<%= 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 %>