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