匿评作品时不需要默认打开本人的作品信息列表

This commit is contained in:
cxt 2015-11-05 15:05:01 +08:00
parent 061b7b88ec
commit 7edb4db99d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<% end%>
<div class="cl"></div>
<div id="about_hwork_<%= student_work.id%>">
<% if student_work.user == User.current %>
<% if student_work.user == User.current && !@is_evaluation %>
<% if @homework.homework_type == 2%>
<%=render :partial => 'programing_work_show', :locals=> {:work => student_work, :score =>student_work_score(student_work,User.current),:student_work_scores => student_work.student_works_scores.order("updated_at desc")} %>
<% else %>