问卷调查页面修改为每页显示5题
This commit is contained in:
parent
33fd43e7b6
commit
05b1b9741b
|
@ -26,7 +26,7 @@ class PollController < ApplicationController
|
|||
@can_edit_poll = (!has_commit_poll?(@poll.id,User.current.id)) || User.current.admin?
|
||||
@percent = get_percent(@poll,User.current)
|
||||
poll_questions = @poll.poll_questions
|
||||
@poll_questions = paginateHelper poll_questions,3 #分页
|
||||
@poll_questions = paginateHelper poll_questions,5 #分页
|
||||
respond_to do |format|
|
||||
format.html {render :layout => 'base_courses'}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue