From 2ef42cbc51f8c006238a86022928500717da1ed6 Mon Sep 17 00:00:00 2001 From: Ahsan Ulhaq Date: Wed, 5 Oct 2016 15:57:43 +0500 Subject: [PATCH] User Menu Added Role information missing from menu items --- lms/djangoapps/courseware/tests/test_masquerade.py | 4 +++- lms/templates/user_dropdown.html | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/courseware/tests/test_masquerade.py b/lms/djangoapps/courseware/tests/test_masquerade.py index ba36397c00..a441d5667f 100644 --- a/lms/djangoapps/courseware/tests/test_masquerade.py +++ b/lms/djangoapps/courseware/tests/test_masquerade.py @@ -156,7 +156,9 @@ class MasqueradeTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase): """ content = self.get_courseware_page().content self.assertIn( - 'Profile'.format(self.test_user.username), + 'Profile'.format( + self.test_user.username + ), content, "Profile link should point to real user", ) diff --git a/lms/templates/user_dropdown.html b/lms/templates/user_dropdown.html index 7dd31d2585..eb66f4fc91 100644 --- a/lms/templates/user_dropdown.html +++ b/lms/templates/user_dropdown.html @@ -32,9 +32,9 @@ from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_