* Use full LMS imports paths in LMS settings and urls modules * Use full LMS import paths in Studio settings and urls modules * Import from lms.djangoapps.badges instead of badges * Import from lms.djangoapps.branding instead of branding * Import from lms.djangoapps.bulk_email instead of bulk_email * Import from lms.djangoapps.bulk_enroll instead of bulk_enroll * Import from lms.djangoapps.ccx instead of ccx * Import from lms.djangoapps.course_api instead of course_api * Import from lms.djangoapps.course_blocks instead of course_blocks * Import from lms.djangoapps.course_wiki instead of course_wiki * Import from lms.djangoapps.courseware instead of courseware * Import from lms.djangoapps.dashboard instead of dashboard * Import from lms.djangoapps.discussion import discussion * Import from lms.djangoapps.email_marketing instead of email_marketing * Import from lms.djangoapps.experiments instead of experiments * Import from lms.djangoapps.gating instead of gating * Import from lms.djangoapps.grades instead of grades * Import from lms.djangoapps.instructor_analytics instead of instructor_analytics * Import form lms.djangoapps.lms_xblock instead of lms_xblock * Import from lms.djangoapps.lti_provider instead of lti_provider * Import from lms.djangoapps.mobile_api instead of mobile_api * Import from lms.djangoapps.rss_proxy instead of rss_proxy * Import from lms.djangoapps.static_template_view instead of static_template_view * Import from lms.djangoapps.survey instead of survey * Import from lms.djangoapps.verify_student instead of verify_student * Stop suppressing EdxPlatformDeprecatedImportWarnings
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
## mako
|
|
|
|
<%page expression_filter="h" args="online_help_token"/>
|
|
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
<%!
|
|
from django.urls import reverse
|
|
from django.utils.translation import ugettext as _
|
|
from lms.djangoapps.ccx.overrides import get_current_ccx
|
|
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
|
|
|
|
# App that handles subdomain specific branding
|
|
from lms.djangoapps.branding import api as branding_api
|
|
%>
|
|
|
|
<h1 class="hd logo-header">
|
|
<div class="logo">
|
|
<a href="${branding_api.get_home_url()}">
|
|
<%block name="navigation_logo">
|
|
<img src="${branding_api.get_logo_url(is_secure)}" alt="${_("{platform_name} Home Page").format(platform_name=static.get_platform_name())}"/>
|
|
</%block>
|
|
</a>
|
|
</div>
|
|
% if course:
|
|
<div class="course-header">
|
|
<span class="provider">${course.display_org_with_default}:</span>
|
|
<span class="course-number">${course.display_number_with_default}</span>
|
|
<%
|
|
display_name = course.display_name_with_default
|
|
if settings.FEATURES.get('CUSTOM_COURSES_EDX', False):
|
|
ccx = get_current_ccx(course.id)
|
|
if ccx:
|
|
display_name = ccx.display_name
|
|
%>
|
|
<span class="course-name">${display_name}</span>
|
|
</div>
|
|
% endif
|
|
</h1>
|
|
% if enable_enterprise_sidebar:
|
|
<div class="enterprise-tagline">
|
|
<% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %>
|
|
% if tagline:
|
|
${tagline}
|
|
% endif
|
|
</div>
|
|
% endif
|