|
|
|
@ -9,18 +9,18 @@
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<% if @homework.homework_detail_group.base_on_project == 1 %>
|
|
|
|
|
<span class="ml15 fl">关联项目:</span>
|
|
|
|
|
<% if student_work.project.is_public || User.current.member_of?(student_work.project) || User.current.admin? %>
|
|
|
|
|
<%= link_to student_work.project.name, project_path(student_work.project.id), :class => 'link-blue fl hidden', :style => "width:200px;", :title => "项目名称"%>
|
|
|
|
|
<%= link_to student_work.project.name, project_path(student_work.project.id), :class => 'link-blue fr hidden', :style => "max-width:200px;", :title => "项目名称"%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="fontBlue fl hidden" style="width:200px;" title="该项目是私有的"><%= student_work.project.name %></span>
|
|
|
|
|
<span class="fontBlue fr hidden" style="max-width:200px;" title="该项目是私有的"><%= student_work.project.name %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="fr">关联项目:</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fl sy_p_grey">
|
|
|
|
|
<span class="fl" style="width:296px;">提交时间:<%=format_date(student_work.commit_time) %></span>
|
|
|
|
|
<div class="flex-container fl" style="width:340px;">
|
|
|
|
|
<span class="fl" style="width:285px;">提交时间:<%=format_date(student_work.commit_time) %></span>
|
|
|
|
|
<div class="flex-container fl" style="width:351px;">
|
|
|
|
|
<div class="flex-cell">教师:<span class="<%= score_color student_work.teacher_score%>"><%= student_work.teacher_score.nil? ? "--" : format("%.1f",student_work.teacher_score)%></span></div>
|
|
|
|
|
<div class="flex-cell">助教:<span class="<%= score_color student_work.teaching_asistant_score%>"><%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%></span></div>
|
|
|
|
|
<% if @homework.anonymous_comment == 0 %>
|
|
|
|
|