Files
edx-platform/cms/templates/asset_index.html
Braden MacDonald 7a5265aace chore: fix warnings with old locator properties
asset_index.html.py:175: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  asset_index.html.py:183: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))

container.html.py:387: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  container.html.py:395: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
  course_outline.html.py:417: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  course_outline.html.py:425: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
2023-05-03 12:35:18 -07:00

60 lines
2.4 KiB
HTML

<%page expression_filter="h"/>
<%inherit file="base.html" />
<%def name="online_help_token()"><% return "files" %></%def>
<%!
from django.urls import reverse
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
%>
<%block name="title">${_("Files & Uploads")}</%block>
<%block name="bodyclass">is-signedin course uploads view-uploads</%block>
<%namespace name='static' file='static_content.html'/>
<%block name="header_extras">
% if not settings.STUDIO_FRONTEND_CONTAINER_URL:
<link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/common.min.css')}" />
<link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/assets.min.css')}" />
% endif
</%block>
<%block name="content">
<div class="wrapper-mast wrapper">
<header class="mast has-actions has-subtitle">
<h2 class="page-header">
<small class="subtitle">${_("Content")}</small>
<span class="sr">- </span>${_("Files & Uploads")}
</h2>
</header>
</div>
<div class="wrapper-content wrapper">
<div class="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.block_id | 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.branch | 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}
}
}
</%static:studiofrontend>
</div>
</div>
</%block>