Commit 15b65fbe by David Baumgold

Fix static links for footer images

parent a03a11e0
...@@ -47,8 +47,10 @@ def get_logo_url(domain=None): ...@@ -47,8 +47,10 @@ def get_logo_url(domain=None):
university = get_university(domain) university = get_university(domain)
if university is None: 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( return '{static_url}images/{uni}-on-edx-logo.png'.format(
uni=university static_url=settings.STATIC_URL, uni=university
) )
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</nav> </nav>
<div class="colophon-about"> <div class="colophon-about">
<img src="${MITX_ROOT_URL}/lms/static/images/header-logo.png" /> <img src="${static.url('images/header-logo.png')}" />
<p>${_("{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")}</p> <p>${_("{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")}</p>
</div> </div>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<header class="global"> <header class="global">
<nav> <nav>
<h1 class="logo"> <h1 class="logo">
<a href="{{MKTG_URL_ROOT}}"><img src="/static/images/header-logo.png"></a> <a href="{{MKTG_URL_ROOT}}"><img src="${static.url('images/header-logo.png')}"></a>
</h1> </h1>
</nav> </nav>
</header> </header>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<header class="global"> <header class="global">
<nav> <nav>
<h1 class="logo"> <h1 class="logo">
<a href="{{MKTG_URL_ROOT}}"><img src="/static/images/header-logo.png"></a> <a href="{{MKTG_URL_ROOT}}"><img src="${static.url('images/header-logo.png')}"></a>
</h1> </h1>
</nav> </nav>
</header> </header>
......
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