socialforge/app/views/exercise/show.html.erb

10 lines
641 B
Plaintext
Raw Normal View History

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 %>
<%= render :partial => 'exercise_teacher', :locals =>{:exercise =>@exercise, :exercise_questions => @exercise_questions} %>
2015-11-19 17:18:58 +08:00
<% else %>
<% 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} %>
<% end %>
2015-11-19 17:18:58 +08:00
<% end %>