Commit 34374774 by Harry Rein Committed by Bill Filler

Hack 3

parent 6b82b8c2
...@@ -11,7 +11,7 @@ from openedx.features.course_experience import course_home_page_title ...@@ -11,7 +11,7 @@ from openedx.features.course_experience import course_home_page_title
%> %>
<%block name="content"> <%block name="content">
<div class="digital-locker ${'on-dashboard' if on_dashboard else 'in-course'}" id="digital-locker"> <div class="digital-locker ${'on-dashboard' if on_dashboard=='yes' else 'in-course'}" id="digital-locker">
<div class="locker"> <div class="locker">
<iframe src="/cb/browser/${bucket_name}"></iframe> <iframe src="/cb/browser/${bucket_name}"></iframe>
</div> </div>
......
...@@ -25,7 +25,7 @@ class DigitalLockerFragmentView(EdxFragmentView): ...@@ -25,7 +25,7 @@ class DigitalLockerFragmentView(EdxFragmentView):
context = { context = {
'course_id': course_id, 'course_id': course_id,
'bucket_name': bucket_name, 'bucket_name': bucket_name,
'on_dashboard': 'dashboard' in request.path, 'on_dashboard': 'yes' if ('dashboard' in request.path) else 'no',
} }
html = render_to_string('course_experience/digital-locker-fragment.html', context) html = render_to_string('course_experience/digital-locker-fragment.html', context)
return Fragment(html) 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