From 15b65fbeccf1ec00b52812f136687db91d1664dd Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Tue, 8 Oct 2013 11:37:22 -0400 Subject: [PATCH] Fix static links for footer images --- lms/djangoapps/branding/__init__.py | 8 +++++--- lms/templates/footer.html | 2 +- lms/templates/registration/password_reset_complete.html | 2 +- lms/templates/registration/password_reset_confirm.html | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lms/djangoapps/branding/__init__.py b/lms/djangoapps/branding/__init__.py index 0bdc69bd0d..aae57ac2e9 100644 --- a/lms/djangoapps/branding/__init__.py +++ b/lms/djangoapps/branding/__init__.py @@ -47,8 +47,10 @@ def get_logo_url(domain=None): university = get_university(domain) if university is None: - return '/static/images/header-logo.png' + return '{static_url}images/header-logo.png'.format( + static_url=settings.STATIC_URL + ) - return '/static/images/{uni}-on-edx-logo.png'.format( - uni=university + return '{static_url}images/{uni}-on-edx-logo.png'.format( + static_url=settings.STATIC_URL, uni=university ) diff --git a/lms/templates/footer.html b/lms/templates/footer.html index f0414c7a8f..394c679b6f 100644 --- a/lms/templates/footer.html +++ b/lms/templates/footer.html @@ -37,7 +37,7 @@
- +

${_("{platform_name} is a non-profit created by founding partners {Harvard} and {MIT} whose mission is to bring the best of higher education to students of all ages anywhere in the world, wherever there is Internet access. {platform_name}'s free online MOOCs are interactive and subjects include computer science, public health, and artificial intelligence.").format(platform_name="EdX", Harvard="Harvard", MIT="MIT")}

diff --git a/lms/templates/registration/password_reset_complete.html b/lms/templates/registration/password_reset_complete.html index 6ccb75ed26..bc82938127 100644 --- a/lms/templates/registration/password_reset_complete.html +++ b/lms/templates/registration/password_reset_complete.html @@ -44,7 +44,7 @@
diff --git a/lms/templates/registration/password_reset_confirm.html b/lms/templates/registration/password_reset_confirm.html index 989d7984b4..557f4d9d90 100644 --- a/lms/templates/registration/password_reset_confirm.html +++ b/lms/templates/registration/password_reset_confirm.html @@ -48,7 +48,7 @@