Allow image files to be cached.
This commit is contained in:
@@ -4,6 +4,7 @@ from django.conf import settings
|
||||
|
||||
from opaque_keys.edx.locations import SlashSeparatedCourseKey
|
||||
from microsite_configuration import microsite
|
||||
from staticfiles.storage import staticfiles_storage
|
||||
|
||||
|
||||
def get_visible_courses():
|
||||
@@ -65,14 +66,8 @@ def get_logo_url():
|
||||
university = microsite.get_value('university')
|
||||
|
||||
if university is None and settings.FEATURES.get('IS_EDX_DOMAIN', False):
|
||||
return '{static_url}images/edx-theme/edx-logo-77x36.png'.format(
|
||||
static_url=settings.STATIC_URL
|
||||
)
|
||||
return staticfiles_storage.url('images/edx-theme/edx-logo-77x36.png')
|
||||
elif university:
|
||||
return '{static_url}images/{uni}-on-edx-logo.png'.format(
|
||||
static_url=settings.STATIC_URL, uni=university
|
||||
)
|
||||
return staticfiles_storage.url('images/{uni}-on-edx-logo.png'.format(uni=university))
|
||||
else:
|
||||
return '{static_url}images/default-theme/logo.png'.format(
|
||||
static_url=settings.STATIC_URL
|
||||
)
|
||||
return staticfiles_storage.url('images/default-theme/logo.png')
|
||||
|
||||
Reference in New Issue
Block a user