diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 31d8bb2fe4..88461904d5 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -360,6 +360,8 @@ MKTG_URLS = { 'WHAT_IS_VERIFIED_CERT': '/verified-certificate', } +ENTERPRISE_LEARNER_PORTAL_BASE_URL = 'http://localhost:8734' + ENTERPRISE_MARKETING_FOOTER_QUERY_PARAMS = {} CREDENTIALS_SERVICE_USERNAME = 'credentials_worker' diff --git a/lms/templates/header/navbar-logo-header.html b/lms/templates/header/navbar-logo-header.html index 933e4c2571..bd61dccb40 100644 --- a/lms/templates/header/navbar-logo-header.html +++ b/lms/templates/header/navbar-logo-header.html @@ -8,17 +8,30 @@ 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 +%> +