Commit 6b82b8c2 by Harry Rein Committed by Bill Filler

hack 2.

parent 6c359072
......@@ -55,7 +55,7 @@
// Styling for digital locker on course page
.course-view,
.content-wrapper {
.in-course {
.locker-description {
width: 100%;
padding: 20px 10px;
......
......@@ -11,7 +11,7 @@ from openedx.features.course_experience import course_home_page_title
%>
<%block name="content">
<div class="digital-locker" id="digital-locker">
<div class="digital-locker ${'on-dashboard' if on_dashboard else 'in-course'}" id="digital-locker">
<div class="locker">
<iframe src="/cb/browser/${bucket_name}"></iframe>
</div>
......
......@@ -25,6 +25,7 @@ class DigitalLockerFragmentView(EdxFragmentView):
context = {
'course_id': course_id,
'bucket_name': bucket_name,
'on_dashboard': 'dashboard' in request.path,
}
html = render_to_string('course_experience/digital-locker-fragment.html', context)
return Fragment(html)
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