Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2ef42cbc
Commit
2ef42cbc
authored
Oct 05, 2016
by
Ahsan Ulhaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User Menu Added Role information missing from menu items
parent
256223d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
lms/djangoapps/courseware/tests/test_masquerade.py
+3
-1
lms/templates/user_dropdown.html
+3
-3
No files found.
lms/djangoapps/courseware/tests/test_masquerade.py
View file @
2ef42cbc
...
...
@@ -156,7 +156,9 @@ class MasqueradeTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
"""
content
=
self
.
get_courseware_page
()
.
content
self
.
assertIn
(
'<a href="/u/{}" class="action dropdown-menuitem">Profile</a>'
.
format
(
self
.
test_user
.
username
),
'<a href="/u/{}" role="menuitem" class="action dropdown-menuitem">Profile</a>'
.
format
(
self
.
test_user
.
username
),
content
,
"Profile link should point to real user"
,
)
...
...
lms/templates/user_dropdown.html
View file @
2ef42cbc
...
...
@@ -32,9 +32,9 @@ from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_
</button>
<ul
class=
"dropdown-menu list-divided is-hidden"
id=
"${_("
Usermenu
")}"
tabindex=
"-1"
>
<
%
block
name=
"navigation_dropdown_menu_links"
>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('dashboard')}"
class=
"action dropdown-menuitem"
>
${_("Dashboard")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('learner_profile', kwargs={'username': self.real_user.username})}"
class=
"action dropdown-menuitem"
>
${_("Profile")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('account_settings')}"
class=
"action dropdown-menuitem"
>
${_("Account")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('dashboard')}"
role=
"menuitem"
class=
"action dropdown-menuitem"
>
${_("Dashboard")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('learner_profile', kwargs={'username': self.real_user.username})}"
role=
"menuitem"
class=
"action dropdown-menuitem"
>
${_("Profile")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('account_settings')}"
role=
"menuitem"
class=
"action dropdown-menuitem"
>
${_("Account")}
</a></li>
</
%
block>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
class=
"action dropdown-menuitem"
>
${_("Sign Out")}
</a></li>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment