<%= link_to(image_tag(url_to_avatar(@homework.user), :width => "42", :height => "42"), user_path(@homework.user), :class => "problem_pic fl") %>
<%= @homework.name%>
<% if @is_teacher%>
<%= homework_anonymous_comment(@homework)%>
<%= link_to(l(:button_edit),edit_homework_common_path(@homework), :class => "fr mr10 work_edit") %>
<% else%>
<%= student_anonymous_comment @homework %>
<%= student_new_homework @homework %>
<% end %>
<%= @homework.description.html_safe %>
<% unless @homework.attachments.empty?%>
附件:
<%= render :partial => 'student_work/work_attachments', :locals => {:attachments => @homework.attachments} %>
<% end%>
扣分标准:
迟交扣
<%= @homework.late_penalty%>
分
<% if @homework.homework_type == 1%>
,缺评一个作品扣
<%= @homework.homework_detail_manual.absence_penalty%>
分
<% else%>
。
<% end%>
截止时间:<%= @homework.end_time%>
<% if betweentime(@homework.end_time) < 0 %>
<%= l(:label_commit_limit)%>
<% else %>
<% end %>