Merge branch 'cxt_course' into 'develop'

非匿评阶段应看到评语回复的用户名



See merge request !44
This commit is contained in:
陈晓婷 2016-12-02 19:18:41 +08:00
commit c89f15b97f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
<div id="replay_histroy_<%= score.id%>">
<% score.journals_for_messages.order("created_on desc").each do |jour|%>
<% show_real_name = @is_teacher || score.reviewer_role != 3 %>
<% show_real_name = @is_teacher || score.reviewer_role != 3 || @homework.homework_detail_manual.comment_status != 2 %>
<%= render :partial => 'jour_replay',:locals => {:jour => jour, :show_real_name => show_real_name || jour.user == User.current}%>
<% end%>
</div>