Merge pull request #8351 from edx/learners-dont-need-to-be-lean
Learners don't need to be lean
This commit is contained in:
@@ -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.learner-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.learner-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='.learner-profile-link').first.click()
|
||||
|
||||
|
||||
class DiscussionTabHomePage(CoursePage, DiscussionPageMixin):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%! 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="learner-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>
|
||||
|
||||
Reference in New Issue
Block a user