Commit 0084b3b4 by Uman Shahzad Committed by GitHub

Merge pull request #16303 from open-craft/uman/ent-tagline-logistration

[ENT-671] Show the Enterprise tagline on the logistration page.
parents 88d2ff24 0a726a46
......@@ -267,7 +267,8 @@ def enterprise_sidebar_context(request):
platform_name = configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME)
logo_url = enterprise_customer.get('branding_configuration', {}).get('logo', '')
branding_configuration = enterprise_customer.get('branding_configuration', {})
logo_url = branding_configuration.get('logo', '') if isinstance(branding_configuration, dict) else ''
branded_welcome_template = configuration_helpers.get_value(
'ENTERPRISE_SPECIFIC_BRANDED_WELCOME_TEMPLATE',
......
......@@ -32,6 +32,22 @@
}
}
.enterprise-tagline {
width: 300px;
font-size: 14px;
text-align: left;
display: inline-block;
vertical-align: middle;
line-height: normal;
margin-left: -30px;
}
@media (max-width: $bp-screen-sm) {
.enterprise-tagline {
width: 200px
}
}
.window-wrap {
background: $white;
}
......
......@@ -7,6 +7,7 @@
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
# App that handles subdomain specific branding
from branding import api as branding_api
......@@ -18,6 +19,12 @@ from branding import api as branding_api
<img class="logo-image" src="${static.url("images/logo.png")}" alt="${_("{platform_name} Home Page").format(platform_name=static.get_platform_name())}" itemprop="logo" />
</a>
</div>
% if enable_enterprise_sidebar:
<span class="enterprise-tagline">
<% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %>
${tagline}
</span>
% endif
% if course and not disable_courseware_header:
<div class="course-header">
<span class="provider">${course.display_org_with_default}:</span>
......
......@@ -7,6 +7,7 @@
from django.core.urlresolvers 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 branding import api as branding_api
......@@ -18,6 +19,12 @@ from branding import api as branding_api
<img class="logo" src="${branding_api.get_logo_url(is_secure)}" alt="${_("{platform_name} Home Page").format(platform_name=static.get_platform_name())}"/>
</%block>
</a>
% if enable_enterprise_sidebar:
<span class="enterprise-tagline">
<% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %>
${tagline}
</span>
% endif
% if course:
<div class="course-header">
<span class="provider">${course.display_org_with_default}:</span>
......
......@@ -7,6 +7,7 @@
from django.core.urlresolvers 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 branding import api as branding_api
......@@ -20,6 +21,12 @@ from branding import api as branding_api
</%block>
</a>
</div>
% if enable_enterprise_sidebar:
<span class="enterprise-tagline">
<% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %>
${tagline}
</span>
% endif
% if course:
<div class="course-header">
<span class="provider">${course.display_org_with_default}:</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment