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

8 lines
238 B
Plaintext
Raw Normal View History

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