## 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 from openedx.features.enterprise_support.api import get_enterprise_learner_data from openedx.features.enterprise_support.utils import get_enterprise_learner_generic_name, get_enterprise_learner_portals # App that handles subdomain specific branding from branding import api as branding_api %> <% enterprise_customer_links = get_enterprise_learner_portals(request) enterprise_customer_link = enterprise_customer_links[0] if enterprise_customer_links else None # Only want to show the first link %>

% if enterprise_customer_link: % else: <%block name="navigation_logo"> % endif % if course:
${course.display_org_with_default}: ${course.display_number_with_default} <% 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 %> ${display_name}
% endif

% if enable_enterprise_sidebar:
<% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %> % if tagline: ${tagline} % endif
% endif