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

12 lines
253 B
Plaintext
Raw Normal View History

2013-09-12 17:19:51 +08:00
<!-- added by fq -->
<%= user_course @state%>
2013-09-23 08:44:48 +08:00
<% if @state == 0 %>
2013-09-12 17:19:51 +08:00
<%= render :partial => 'my_course' %>
2013-09-23 08:44:48 +08:00
<% elsif @state == 1 %>
2013-09-12 17:19:51 +08:00
<%= render :partial => 'my_homework' %>
2013-09-23 08:44:48 +08:00
<% else @state == 2 %>
<%= render :partial => 'my_notice' %>
2013-09-12 17:19:51 +08:00
<% end %>