2013-09-12 17:19:51 +08:00
|
|
|
<!-- added by fq -->
|
2013-10-10 21:33:52 +08:00
|
|
|
<!--huang-->
|
|
|
|
<% if @user.user_extensions.identity == 0 %> <!-- for teacher-->
|
2013-10-16 10:58:21 +08:00
|
|
|
<%= render :partial => 'my_course' %>
|
2013-10-10 21:33:52 +08:00
|
|
|
<% else %> <!--for student-->
|
|
|
|
<%= render :partial => 'my_joinedcourse' %>
|
|
|
|
<% end %>
|