You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
json . course_is_end @course . is_end # true表示已结束, false表示未结束
json . extract! @poll , :id , :polls_name , :polls_description , :show_result
json . polls_status @poll_status
json . user_permission do
json . is_teacher_or @is_teacher_or
json . current_status @user_poll_answer
json . poll_publish_count @poll_publish_count #是否存在已发布的分班
json . poll_unpublish_count @poll_unpublish_count #是否存在未发布的分班
json . left_banner_id @left_banner_id
json . left_banner_name @left_banner_name
end
poll_url_status = poll_common_header ( @is_teacher_or , @poll )
json . common_tabs do
json . array! poll_url_status do | p |
json . common_tab p [ :common_tab ] . to_i
json . active_status p [ :active_status ]
end
end