Added course level lang attribute for LMS added lang attribute to Studio fixed error when trying to get language attribute on course that does not exist simplified code added lang attribure to more places in LMS, added migration for language attribute in course_overview fixing contraints in the database for language attribute added lang attribute to several more places in LMS and Studio added lang attribute to discussion and custom pages; cleaned up code fixed issue that was causing test failures moved lang attribute higher in tree in two places
39 lines
1.0 KiB
HTML
39 lines
1.0 KiB
HTML
## mako
|
|
|
|
<%page expression_filter="h"/>
|
|
<%!
|
|
from openedx.core.djangolib.markup import HTML
|
|
%>
|
|
|
|
<%inherit file="/main.html" />
|
|
<%block name="bodyclass">view-in-course view-statictab ${course.css_class or ''}</%block>
|
|
<%namespace name='static' file='/static_content.html'/>
|
|
|
|
<%block name="head_extra">
|
|
<%static:css group='style-course-vendor'/>
|
|
<%static:css group='style-course'/>
|
|
${HTML(fragment.head_html())}
|
|
</%block>
|
|
|
|
<%block name="footer_extra">
|
|
<%include file="/mathjax_include.html" args="disable_fast_preview=True"/>
|
|
${HTML(fragment.foot_html())}
|
|
</%block>
|
|
|
|
<%block name="pagetitle">${tab['name']} | ${course.display_number_with_default}</%block>
|
|
|
|
<%include file="/courseware/course_navigation.html" args="active_page=active_page" />
|
|
|
|
<main id="main" aria-label="Content" tabindex="-1">
|
|
<section class="container"
|
|
% if getattr(course, 'language'):
|
|
lang=${course.language}
|
|
% endif
|
|
>
|
|
<section class="container">
|
|
<div class="static_tab_wrapper">
|
|
${HTML(fragment.body_html())}
|
|
</div>
|
|
</section>
|
|
</main>
|