<%= render :partial => 'layouts/base_homework_attach', :locals => {:homework_attach => @homework} %> <% is_student = is_cur_course_student @homework.bid.courses.first %> <% is_teacher = is_course_teacher User.current,@homework.bid.courses.first %>

<%= notice %>

作业基础信息<%=@count %>
发布人员:<%= link_to @homework.user, user_path(@homework.user)%> 所属任务:<%= link_to(@homework.bid.name, course_for_bid_path(@homework.bid))%>
作业下载: <% if @is_evaluation || is_teacher%> <% options = {:author => true } %> <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %> <% else %> <%= l(:label_cant_download) %> <% end %> 参与人员: <% @homework.users.each do |homework_user| %> <%= link_to homework_user, user_path(homework_user)%> <% if @homework.users.count > 1 && homework_user != @homework.users.last %>
                 <% end %> <% end %>
平均评分: <%= render :partial => 'show_score', :locals => {:stars => @totle_score} %> 发布时间:<%=format_time @homework.created_at %>
作业描述:
<% if @homework.description != nil && @homework.description != "" %> <%= @homework.description %> <% else %>
该作业无任何描述!
<% end %>
作业得分:
得分比例
<% 100.step(20,-20) do |star| %>
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
<% end %>
最终得分
<%= @totle_score %>分
<%= render :partial => 'show_score', :locals => {:stars => @totle_score} %>
打分总人数
<%= @homework.raters(:quality).count%>
<%= render :partial => 'comprehensive_evaluation', :locals => {:comprehensive_evaluation => @comprehensive_evaluation,:homework => @homework, :teaher_score => @teaher_score} %>
<% if !users_for_homework(@homework).include?(User.current) %>
作业评论:
<% if is_student %> <% if @is_evaluation %> <% if @has_evaluation %>
<%= l(:lable_has_evaluation)%>
<% else %> <%= render :partial => 'evaluation', :locals => {:homework => @homework} %> <% end %> <% else %>
<%= l(:lable_close_evaluation)%>
<% end %> <% end %>
<% end %> <% if !is_teacher %>
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %>
<% end %>
<%= render :partial => 'showjour', :locals => {:jour => @jour,:homework => @homework} %>