Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
34374774
Commit
34374774
authored
Sep 28, 2017
by
Harry Rein
Committed by
Bill Filler
Oct 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack 3
parent
6b82b8c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
openedx/features/course_experience/templates/course_experience/digital-locker-fragment.html
+1
-1
openedx/features/course_experience/views/digital_locker_fragment.py
+1
-1
No files found.
openedx/features/course_experience/templates/course_experience/digital-locker-fragment.html
View file @
34374774
...
@@ -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>
...
...
openedx/features/course_experience/views/digital_locker_fragment.py
View file @
34374774
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment