Files
edx-platform/lms/templates/static_templates/server-down.html
Mike 0e2b667bb4 Added ability to change header and content of static pages in two ways.
1. Using the pageheader and pagecontent block names.
2. Setting SiteConfiguration settings for each individual html page.

Co-authored by: Tomasz Gargas <tomasz@opencraft.com>
2018-03-24 21:37:09 +01:00

36 lines
1.3 KiB
HTML

<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<main id="main" aria-label="Content" tabindex="-1">
<section class="outside-app">
<h1>
<%block name="pageheader">
% if page_header:
${page_header}
% else:
${Text(_("Currently the {platform_name} servers are down")).format(
platform_name=HTML(u"<em>{}</em>").format(Text(static.get_platform_name()))
)}
% endif
</%block>
</h1>
<p>
<%block name="pagecontent">
% if page_content:
${page_content}
% else:
${Text(_("Our staff is currently working to get the site back up as soon as possible. "
"Please email us at {tech_support_email} to report any problems or downtime.")).format(
tech_support_email=HTML('<a href="mailto:{0}">{0}</a>').format(Text(static.get_tech_support_email_address()))
)}
% endif
</%block>
</p>
</section>
</main>