<%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "files" %> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from openedx.core.djangolib.markup import HTML, Text from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json from cms.djangoapps.contentstore.config.waffle import waffle, ENABLE_ASSETS_SEARCH %> <%block name="title">${_("Files & Uploads")} <%block name="bodyclass">is-signedin course uploads view-uploads <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> <%block name="content">
<%static:optional_include_mako file="asset_index_content_header.html" /> <%static:studiofrontend entry="assets"> { "lang": "${language_code | n, js_escaped_string}", "course": { "id": "${context_course.id | n, js_escaped_string}", "name": "${context_course.display_name_with_default | n, js_escaped_string}", "url_name": "${context_course.location.name | n, js_escaped_string}", "org": "${context_course.location.org | n, js_escaped_string}", "num": "${context_course.location.course | n, js_escaped_string}", "display_course_number": "${context_course.display_coursenumber | n, js_escaped_string}", "revision": "${context_course.location.revision | n, js_escaped_string}" }, "help_tokens": { "files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}" }, "upload_settings": { "max_file_size_in_mbs": ${max_file_size_in_mbs|n, dump_js_escaped_json} }, "search_settings": { "enabled": ${waffle().is_enabled(ENABLE_ASSETS_SEARCH) | n, dump_js_escaped_json} } }