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

6 lines
198 B
Plaintext
Raw Normal View History

2014-01-24 10:55:25 +08:00
<% if @user.user_extensions.identity == UserExtensions::TEACHER %>
<%= render :partial => 'my_course' %>
<% else %> <!--for student-->
<%= render :partial => 'my_joinedcourse' %>
<% end %>