每页显示20份作业
This commit is contained in:
parent
c289af2e7c
commit
e3379cf205
|
@ -8,7 +8,7 @@ class HomeworkCommonController < ApplicationController
|
|||
homeworks = @course.homework_commons
|
||||
@is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course))
|
||||
@is_student = User.current.logged? && (User.current.admin? || (User.current.member_of_course?(@course) && !@is_teacher))
|
||||
@homeworks = paginateHelper homeworks,10
|
||||
@homeworks = paginateHelper homeworks,20
|
||||
respond_to do |format|
|
||||
format.html
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue