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
32749a66
Commit
32749a66
authored
Jun 04, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8351 from edx/learners-dont-need-to-be-lean
Learners don't need to be lean
parents
7c0709ce
37064cf1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/test/acceptance/pages/lms/discussion.py
+3
-3
lms/templates/discussion/_user_profile.html
+1
-1
No files found.
common/test/acceptance/pages/lms/discussion.py
View file @
32749a66
...
...
@@ -487,9 +487,9 @@ class DiscussionUserProfilePage(CoursePage):
return
(
self
.
q
(
css
=
'section.discussion-user-threads[data-course-id="{}"]'
.
format
(
self
.
course_id
))
.
present
and
self
.
q
(
css
=
'section.user-profile a.leaner-profile-link'
)
.
present
self
.
q
(
css
=
'section.user-profile a.lea
r
ner-profile-link'
)
.
present
and
self
.
q
(
css
=
'section.user-profile a.leaner-profile-link'
)
.
text
[
0
]
==
self
.
username
self
.
q
(
css
=
'section.user-profile a.lea
r
ner-profile-link'
)
.
text
[
0
]
==
self
.
username
)
@wait_for_js
...
...
@@ -571,7 +571,7 @@ class DiscussionUserProfilePage(CoursePage):
def
click_on_sidebar_username
(
self
):
self
.
wait_for_page
()
self
.
q
(
css
=
'.leaner-profile-link'
)
.
first
.
click
()
self
.
q
(
css
=
'.lea
r
ner-profile-link'
)
.
first
.
click
()
class
DiscussionTabHomePage
(
CoursePage
,
DiscussionPageMixin
):
...
...
lms/templates/discussion/_user_profile.html
View file @
32749a66
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
,
ungettext
%
>
<
%
def
name=
"span(num)"
><span>
${num}
</span></
%
def>
<div
class=
"user-profile"
>
<div
class=
"sidebar-username"
><a
class=
"leaner-profile-link"
href=
"${learner_profile_page_url}"
>
${django_user.username | h}
</a></div>
<div
class=
"sidebar-username"
><a
class=
"lea
r
ner-profile-link"
href=
"${learner_profile_page_url}"
>
${django_user.username | h}
</a></div>
<div
class=
"sidebar-user-roles"
>
${_(', ').join(sorted(set(map(_, [role.name for role in django_user.roles.all()]))))}
</div>
...
...
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