bigdir/app/views/users/user_courses.html.erb

12 lines
253 B
Plaintext

<!-- added by fq -->
<%= user_course @state%>
<% if @state == 0 %>
<%= render :partial => 'my_course' %>
<% elsif @state == 1 %>
<%= render :partial => 'my_homework' %>
<% else @state == 2 %>
<%= render :partial => 'my_notice' %>
<% end %>