Logo text for edge (#26100)
* Logo text for edge * Refactored code Co-authored-by: Asad <asadazam93@gmail.com>
This commit is contained in:
@@ -4174,6 +4174,7 @@ MAX_BLOCKS_PER_CONTENT_LIBRARY = 1000
|
||||
COUNTRIES_FIRST = []
|
||||
|
||||
################# Settings for brand logos. #################
|
||||
LOGO_IMAGE_EXTRA_TEXT = ''
|
||||
LOGO_URL = None
|
||||
LOGO_URL_PNG = None
|
||||
LOGO_TRADEMARK_URL = None
|
||||
|
||||
@@ -1041,3 +1041,5 @@ EXPLICIT_QUEUES = {
|
||||
'openedx.core.djangoapps.coursegraph.dump_course_to_neo4j': {
|
||||
'queue': COURSEGRAPH_JOB_QUEUE},
|
||||
}
|
||||
|
||||
LOGO_IMAGE_EXTRA_TEXT = ENV_TOKENS.get('LOGO_IMAGE_EXTRA_TEXT', '')
|
||||
|
||||
@@ -22,12 +22,18 @@ enterprise_customer_link = get_enterprise_learner_portal(request)
|
||||
% if enterprise_customer_link:
|
||||
<a href="${settings.ENTERPRISE_LEARNER_PORTAL_BASE_URL}/${enterprise_customer_link.get('slug')}">
|
||||
<img class="logo" src="${enterprise_customer_link.get('logo')}" alt="${_('{name} Dashboard').format(name=enterprise_customer_link.get('name'))}"/>
|
||||
% if settings.LOGO_IMAGE_EXTRA_TEXT == 'edge':
|
||||
<span class="font-italic"> | EDGE</span>
|
||||
% endif
|
||||
</a>
|
||||
% else:
|
||||
<a href="${branding_api.get_home_url()}">
|
||||
<%block name="navigation_logo">
|
||||
<img class="logo" src="${branding_api.get_logo_url(is_secure)}" alt="${_("{platform_name} Home Page").format(platform_name=static.get_platform_name())}"/>
|
||||
</%block>
|
||||
% if settings.LOGO_IMAGE_EXTRA_TEXT == 'edge':
|
||||
<span class="font-italic"> | EDGE</span>
|
||||
% endif
|
||||
</a>
|
||||
% endif
|
||||
% if course:
|
||||
|
||||
Reference in New Issue
Block a user