每页显示20份作业

This commit is contained in:
sw 2015-05-26 09:07:32 +08:00
parent c289af2e7c
commit e3379cf205
1 changed files with 1 additions and 1 deletions

View File

@ -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