<%= notice %>

作业基础信息<%=@count %>
发布人员:<%= link_to @homework.user, user_path(@homework.user)%> 发布时间:<%=format_time @homework.created_at %>
作业下载: <% options = {:author => true } %> <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %> 所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%>
平均评分: <%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
<% @homework.attachments.map do |attachment| %> <% if attachment.description != nil && attachment.description != "" %> <% end %> <% end %>
作业描述:
<%= attachment.description %>
作业得分:
得分比例
<% 100.step(20,-20) do |star| %>
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
<% end %>
最终得分
<%= @homework.average(:quality).try(:avg).try(:round, 2).to_s %> 分
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
打分总人数
<%= @homework.raters(:quality).count%>
作业评论:
评分: <%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %> (您可以重新打分,打分结果以最后一次打分为主!)
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0} %>
<%= render :partial => 'showjour', :locals => {:jour => @jour} %>