% if @user.user_extensions.identity == UserExtensions::TEACHER %> <%= render :partial => 'my_course' %> <% else %> <%= render :partial => 'my_joinedcourse' %> <% end %> <% html_title(l(:label_user_course)) -%>