%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"> <% return "content_libraries" %> %def> <%! from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name from django.utils.translation import ugettext as _ from openedx.core.djangolib.js_utils import dump_js_escaped_json from openedx.core.djangolib.markup import HTML, Text %> <%block name="title">${context_library.display_name_with_default} ${xblock_type_display_name(context_library)}%block> <%block name="bodyclass">is-signedin course container view-container view-library%block> <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> % for template_name in templates: % endfor %block> <%block name="requirejs"> require(["js/factories/library"], function(LibraryFactory) { LibraryFactory( ${component_templates | n, dump_js_escaped_json}, ${xblock_info | n, dump_js_escaped_json}, { isUnitPage: false, page_size: 10, canEdit: ${can_edit | n, dump_js_escaped_json}, showChildrenPreviews: ${context_library.show_children_previews | n, dump_js_escaped_json} } ); }); %block> <%block name="content">
${_("Loading")}
${_("Add components to your library for use in courses, using Add New Component at the bottom of this page.")}
${_("Components are listed in the order in which they are added, with the most recently added at the bottom. Use the pagination arrows to navigate from page to page if you have more than one page of components in your library.")}
${Text(_("Use library content in courses by adding the {em_start}library_content{em_end} policy key to the Advanced Module List in the course's Advanced Settings, then adding a Randomized Content Block to your courseware. In the settings for each Randomized Content Block, select this library as the source library, and specify the number of problems to be randomly selected and displayed to each student.")).format( em_start=HTML(""), em_end=HTML("") )}