2015-11-20 09:54:46 +08:00
|
|
|
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
2015-11-19 17:18:58 +08:00
|
|
|
<% if @is_teacher %>
|
2015-11-19 21:19:18 +08:00
|
|
|
<%= render :partial => 'exercise_teacher', :locals =>{:exercise =>@exercise, :exercise_questions => @exercise_questions} %>
|
2015-11-19 17:18:58 +08:00
|
|
|
<% else %>
|
2015-11-19 21:19:18 +08:00
|
|
|
<% if @can_edit_excercise %>
|
|
|
|
<%=render :partial => 'exercise_student', :locals => {:exercise =>@exercise, :exercise_questions => @exercise_questions,:exercise_user => @exercise_user} %>
|
|
|
|
<% else %>
|
2015-11-27 15:19:13 +08:00
|
|
|
<%=render :partial => 'exercise_student_result', :locals => {:exercise =>@exercise, :exercise_questions => @exercise_questions,:exercise_user => @exercise_user,:user=>User.current} %>
|
2015-11-19 21:19:18 +08:00
|
|
|
<% end %>
|
2015-11-19 17:18:58 +08:00
|
|
|
<% end %>
|