feat: pass username into CourseHomeMetadataView

Passes the request username into the course home metadata view so that
masquerade functionality can be used with the proctoring info panel.
This commit is contained in:
Bianca Severino
2021-04-02 14:55:39 -04:00
parent 1181fb343e
commit 8cee215c01
4 changed files with 27 additions and 8 deletions

View File

@@ -85,7 +85,8 @@ from openedx.features.course_experience.course_tools import HttpMethod
</div>
<aside class="page-content-secondary course-sidebar">
% if show_proctoring_info_panel:
<div class="proctoring-info-panel" data-course-id="${course_key}"></div>
<div class="proctoring-info-panel"
data-course-id="${course_key}" data-username="${username}"></div>
% endif
% if has_goal_permission:
<div class="section section-goals ${'' if current_goal else 'hidden'}">