Commit 32749a66 by David Baumgold

Merge pull request #8351 from edx/learners-dont-need-to-be-lean

Learners don't need to be lean
parents 7c0709ce 37064cf1
......@@ -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):
......
<%! 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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment