70 lines
2.6 KiB
HTML
70 lines
2.6 KiB
HTML
<%inherit file="base.html" />
|
|
<%def name="online_help_token()"><% return "content_libraries" %></%def>
|
|
<%!
|
|
import json
|
|
|
|
from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
|
|
from django.utils.translation import ugettext as _
|
|
%>
|
|
<%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:
|
|
<script type="text/template" id="${template_name}-tpl">
|
|
<%static:include path="js/${template_name}.underscore" />
|
|
</script>
|
|
% endfor
|
|
</%block>
|
|
|
|
<%block name="requirejs">
|
|
require(["js/factories/library"], function(LibraryFactory) {
|
|
LibraryFactory(
|
|
${component_templates | n}, ${json.dumps(xblock_info) | n},
|
|
{
|
|
isUnitPage: false,
|
|
page_size: 10
|
|
}
|
|
);
|
|
});
|
|
</%block>
|
|
|
|
<%block name="content">
|
|
|
|
|
|
<div class="wrapper-mast wrapper">
|
|
<header class="mast has-actions has-navigation has-subtitle">
|
|
<div class="page-header">
|
|
<h1 class="page-header-title"><span class="title-value">${context_library.display_name_with_default | h}</span></h1>
|
|
</div>
|
|
</header>
|
|
</div>
|
|
|
|
<div class="wrapper-content wrapper">
|
|
<div class="inner-wrapper">
|
|
<section class="content-area">
|
|
|
|
<article class="content-primary">
|
|
<div class="container-message wrapper-message"></div>
|
|
<section class="wrapper-xblock level-page is-hidden studio-xblock-wrapper" data-locator="${context_library.location | h}" data-course-key="${context_library.location.library_key | h}">
|
|
</section>
|
|
<div class="ui-loading">
|
|
<p><span class="spin"><i class="icon-refresh"></i></span> <span class="copy">${_("Loading")}</span></p>
|
|
</div>
|
|
</article>
|
|
<aside class="content-supplementary" role="complimentary">
|
|
<div class="bit">
|
|
<h3 class="title-3">${_("Adding content components")}</h3>
|
|
<p>${_("You can add components to the library. Help text here.")}</p>
|
|
</div>
|
|
<div class="bit external-help">
|
|
<a href="${get_online_help_info('library')['doc_url']}" target="_blank" class="button external-help-button">${_("Learn more about content libraries")}</a>
|
|
</div>
|
|
</aside>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</%block>
|