<!-- 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 %>