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

9 lines
239 B
Plaintext

<!-- added by fq -->
<!--huang-->
<% if @user.user_extensions.identity == 0 %> <!-- for teacher-->
<%= render :partial => 'my_course' %>
<% else %> <!--for student-->
<%= render :partial => 'my_joinedcourse' %>
<% end %>