Change templates to use site aware email

Template were using global TECH_SUPPORT_EMAIL for error pages. This
changes them to use the site email if there is one.
This commit is contained in:
Matt Tuchfarber
2017-07-25 15:07:30 -04:00
parent 562322d71e
commit 827c703d16
7 changed files with 28 additions and 13 deletions

View File

@@ -3,6 +3,10 @@
<%namespace name='static' file='../static_content.html'/>
<%block name="bodyclass">courseware</%block>
<%block name="pagetitle">${_("Courseware")}</%block>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<%block name="headextra">
<%static:css group='style-course-vendor'/>
@@ -15,13 +19,13 @@
<section class="outside-app">
<h1>
${_('There has been an error on the {platform_name} servers').format(
platform_name=u'<span class="edx">{}</span>'.format(settings.PLATFORM_NAME)
platform_name=u'<span class="edx">{}</span>'.format(static.get_platform_name())
)}
</h1>
<p>
${_("We're sorry, this module is temporarily unavailable. Our staff is working to fix "
"it as soon as possible. Please email us at {tech_support_email} to report any problems or downtime.").format(
tech_support_email=u'<a href=\"mailto:{0}\">{0}</a>'.format(settings.TECH_SUPPORT_EMAIL)
tech_support_email=u'<a href=\"mailto:{0}\">{0}</a>'.format(static.get_tech_support_email_address())
)}
</p>
</section>