Skip to content
Snippets Groups Projects
Unverified Commit b5ef6137 authored by Saad Yousaf's avatar Saad Yousaf Committed by GitHub
Browse files

Logo text for edge (#26100)


* Logo text for edge

* Refactored code

Co-authored-by: default avatarAsad <asadazam93@gmail.com>
parent 034a9f2e
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment