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
edx
edx-platform
Commits
8d429a91
Commit
8d429a91
authored
Oct 12, 2016
by
alisan617
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add child of text check unit page
parent
62423ffb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
common/lib/xmodule/xmodule/vertical_block.py
+4
-2
No files found.
common/lib/xmodule/xmodule/vertical_block.py
View file @
8d429a91
...
...
@@ -52,6 +52,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse
child_context
[
'child_of_vertical'
]
=
True
is_child_of_vertical
=
context
.
get
(
'child_of_vertical'
,
False
)
# pylint: disable=no-member
for
child
in
self
.
get_display_items
():
rendered_child
=
child
.
render
(
STUDENT_VIEW
,
child_context
)
...
...
@@ -65,8 +67,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse
fragment
.
add_content
(
self
.
system
.
render_template
(
'vert_module.html'
,
{
'items'
:
contents
,
'xblock_context'
:
context
,
'unit_title'
:
self
.
display_name_with_default
,
'show_bookmark_button'
:
True
,
'unit_title'
:
self
.
display_name_with_default
if
not
is_child_of_vertical
else
None
,
'show_bookmark_button'
:
not
is_child_of_vertical
,
'bookmarked'
:
child_context
[
'bookmarked'
],
'bookmark_id'
:
"{},{}"
.
format
(
child_context
[
'username'
],
unicode
(
self
.
location
))
}))
...
...
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