Commit a7c06fd2 by cahrens

Allow image files to be cached.

parent 117bc4a9
......@@ -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')
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