增加当前作品为匿评列表的判断
This commit is contained in:
parent
d4b3afb54e
commit
8522140182
|
@ -12,6 +12,8 @@ class StudentWorkController < ApplicationController
|
|||
@is_teacher = User.current.allowed_to?(:as_teacher,@course)
|
||||
#老师 || 非匿评作业 || 匿评结束 显示所有的作品
|
||||
@show_all = @is_teacher || @homework.homework_type != 1 || @homework.homework_detail_manual.comment_status == 3
|
||||
#当前列表为匿评列表
|
||||
@is_evaluation = !@is_teacher && @homework.homework_type == 1 && @homework.homework_detail_manual.comment_status == 2
|
||||
if @show_all
|
||||
@stundet_works = search_homework_member @homework.student_works.order("#{@order} #{@b_sort}"),@name
|
||||
else #学生
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!--class=""-->
|
||||
<!-- 作品列表,显示某一个作品的信息 -->
|
||||
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
||||
<li style="min-height: 1px;width: 65px;">
|
||||
<%= link_to student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id,user_path(student_work.user),:class => "c_blue02 hwork_center"%>
|
||||
|
|
Loading…
Reference in New Issue