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
9f85c0f0
Commit
9f85c0f0
authored
Nov 26, 2014
by
Jonathan Piacenti
Committed by
E. Kolpakov
Jan 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added explanation to container view of Library Block.
parent
d4e82424
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
common/lib/xmodule/xmodule/library_content_module.py
+6
-1
lms/templates/library-block-author-preview-header.html
+10
-0
No files found.
common/lib/xmodule/xmodule/library_content_module.py
View file @
9f85c0f0
...
...
@@ -251,7 +251,7 @@ class LibraryContentModule(LibraryContentFields, XModule, StudioEditableModule):
fragment
.
add_frag_resources
(
rendered_child
)
contents
.
append
({
'id'
:
displayable
.
location
.
to_deprecated_string
(),
'content'
:
rendered_child
.
content
'content'
:
rendered_child
.
content
,
})
fragment
.
add_content
(
self
.
system
.
render_template
(
'vert_module.html'
,
{
...
...
@@ -273,6 +273,11 @@ class LibraryContentModule(LibraryContentFields, XModule, StudioEditableModule):
if
is_root
:
# User has clicked the "View" link. Show a preview of all possible children:
if
self
.
children
:
# pylint: disable=no-member
fragment
.
add_content
(
self
.
system
.
render_template
(
"library-block-author-preview-header.html"
,
{
'max_count'
:
self
.
max_count
,
'display_name'
:
self
.
display_name
or
self
.
url_name
,
'mode'
:
self
.
mode
,
}))
self
.
render_children
(
context
,
fragment
,
can_reorder
=
False
,
can_add
=
False
)
else
:
fragment
.
add_content
(
u'<p>{}</p>'
.
format
(
...
...
lms/templates/library-block-author-preview-header.html
0 → 100644
View file @
9f85c0f0
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<div
class=
"wrapper-xblock-message"
>
<div
class=
"xblock-message information"
>
<p>
<span
class=
"message-text"
>
${_('Showing all matching content eligible to be added into {display_name}. Each student will be assigned {mode} {max_count} components from this list.').format(max_count=max_count, display_name=display_name, mode=mode)}
</span>
</p>
</div>
</div>
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