.container
  .profile_container
    = render 'user_profiles/user_form'

    #userprofile_navbar
      - if @user.course_instructor? || @user.course_student?
        = render 'user_profiles/profile_nav'

    #profile_details

      - if @user.course_instructor? || @user.course_student?
        #react_root{"data-isstudent" =>  @user.course_student? ? '{ "student": true }' : '{ "student": false }' , "data-isinstructor" =>  @user.course_instructor? ? '{ "instructor": true }' : '{ "instructor": false }'}

      - unless @last_courses_user
        %br/
        %h4
          #{@user.username}
          = t("courses.nocourse")

.container
  .profile_container
    = render 'user_profiles/user_form'

    #userprofile_navbar
      - if @last_courses_user
        = render 'user_profiles/profile_nav'

    #profile_details
      - if @last_courses_user
        #react_root{"data-isstudent" =>  @user.course_student? ? '{ "student": true }' : '{ "student": false }' , "data-isinstructor" =>  @user.course_instructor? ? '{ "instructor": true }' : '{ "instructor": false }'}

      - unless @last_courses_user
        %br/
        %h4
          #{@user.username}
          = t("courses.nocourse")

Fix profile page for Wiki Education staff
Fix profile page for Wiki Education staff
