- ${_("Page not found")}
- ${Text(_('The page that you were looking for was not found. Go back to the {link_start}homepage{link_end} or let us know about any pages that may have been moved at {email}.')).format(
- link_start=HTML(''),
- link_end=HTML(''),
- email=HTML('{email}').format(email=Text(static.get_tech_support_email_address()))
- )}
+
+ <%block name="pageheader">${page_header or _("Page not found")}%block>
+
+
+ <%block name="pagecontent">
+ % if page_content:
+ ${page_content}
+ % else:
+ ${Text(_('The page that you were looking for was not found. Go back to the {link_start}homepage{link_end} or let us know about any pages that may have been moved at {email}.')).format(
+ link_start=HTML(''),
+ link_end=HTML(''),
+ email=HTML('{email}').format(email=Text(static.get_tech_support_email_address()))
+ )}
+ % endif
+ %block>
+
diff --git a/lms/templates/static_templates/about.html b/lms/templates/static_templates/about.html
index 1192644eb2..2bedeb61f6 100644
--- a/lms/templates/static_templates/about.html
+++ b/lms/templates/static_templates/about.html
@@ -6,7 +6,11 @@
- ${_("About")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("About")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/blog.html b/lms/templates/static_templates/blog.html
index 77a38163f2..1256e97ee1 100644
--- a/lms/templates/static_templates/blog.html
+++ b/lms/templates/static_templates/blog.html
@@ -6,7 +6,11 @@
- ${_("Blog")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Blog")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/contact.html b/lms/templates/static_templates/contact.html
index 6cebfe2792..d607dccb65 100644
--- a/lms/templates/static_templates/contact.html
+++ b/lms/templates/static_templates/contact.html
@@ -6,7 +6,11 @@
- ${_("Contact")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Contact")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/donate.html b/lms/templates/static_templates/donate.html
index 57d4b0d64c..86d6e0812a 100644
--- a/lms/templates/static_templates/donate.html
+++ b/lms/templates/static_templates/donate.html
@@ -6,7 +6,11 @@
- ${_("Donate")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Donate")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/embargo.html b/lms/templates/static_templates/embargo.html
index 3ec78df2b3..bb2188e7eb 100644
--- a/lms/templates/static_templates/embargo.html
+++ b/lms/templates/static_templates/embargo.html
@@ -9,14 +9,20 @@ from openedx.core.djangolib.markup import HTML, Text
-
- ${Text(_("Our system indicates that you are trying to access this {platform_name} "
- "course from a country or region currently subject to U.S. economic and trade sanctions."
- "Unfortunately, because {platform_name} is required to comply with export controls,"
- "we cannot allow you to access this course at this time."
- )).format(
- platform_name=Text(settings.PLATFORM_NAME),
- )}
-
+ % if page_header:
+
+ <%block name="pageheader">${page_header}%block>
+
+ % endif
+
+ <%block name="pagecontent">${page_content or Text(_("Our system indicates that you are trying to access this {platform_name} "
+ "course from a country or region currently subject to U.S. economic and trade sanctions."
+ "Unfortunately, because {platform_name} is required to comply with export controls,"
+ "we cannot allow you to access this course at this time."
+ )).format(
+ platform_name=Text(settings.PLATFORM_NAME),
+ )}}
+ %block>
+
diff --git a/lms/templates/static_templates/faq.html b/lms/templates/static_templates/faq.html
index e5be46d917..d4c413e02c 100644
--- a/lms/templates/static_templates/faq.html
+++ b/lms/templates/static_templates/faq.html
@@ -6,7 +6,11 @@
- ${_("FAQ")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("FAQ")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/help.html b/lms/templates/static_templates/help.html
index 2bd7ade548..546f2e0410 100644
--- a/lms/templates/static_templates/help.html
+++ b/lms/templates/static_templates/help.html
@@ -6,7 +6,11 @@
- ${_("Help")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Help")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/honor.html b/lms/templates/static_templates/honor.html
index d1fe410c3c..4fee7f2cee 100644
--- a/lms/templates/static_templates/honor.html
+++ b/lms/templates/static_templates/honor.html
@@ -6,7 +6,11 @@
- ${_("Honor Code")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Honor Code")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/jobs.html b/lms/templates/static_templates/jobs.html
index 62a29d4a89..3a736dbab1 100644
--- a/lms/templates/static_templates/jobs.html
+++ b/lms/templates/static_templates/jobs.html
@@ -6,7 +6,11 @@
- ${_("Jobs")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Jobs")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/media-kit.html b/lms/templates/static_templates/media-kit.html
index 857da112d4..4819bcaa9f 100644
--- a/lms/templates/static_templates/media-kit.html
+++ b/lms/templates/static_templates/media-kit.html
@@ -6,7 +6,11 @@
- ${_("Media Kit")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Media Kit")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/news.html b/lms/templates/static_templates/news.html
index 9f6231808f..c7337a2ee6 100644
--- a/lms/templates/static_templates/news.html
+++ b/lms/templates/static_templates/news.html
@@ -7,7 +7,11 @@
- ${_("In the Press")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("In the Press")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/press.html b/lms/templates/static_templates/press.html
index 9f6231808f..c7337a2ee6 100644
--- a/lms/templates/static_templates/press.html
+++ b/lms/templates/static_templates/press.html
@@ -7,7 +7,11 @@
- ${_("In the Press")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("In the Press")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/privacy.html b/lms/templates/static_templates/privacy.html
index 03df8b8d2f..1c4830feee 100644
--- a/lms/templates/static_templates/privacy.html
+++ b/lms/templates/static_templates/privacy.html
@@ -7,7 +7,11 @@
- ${_("Privacy Policy")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Privacy Policy")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+
diff --git a/lms/templates/static_templates/server-down.html b/lms/templates/static_templates/server-down.html
index aff93094fc..982bb1ea19 100644
--- a/lms/templates/static_templates/server-down.html
+++ b/lms/templates/static_templates/server-down.html
@@ -8,15 +8,28 @@ from openedx.core.djangolib.markup import HTML, Text
-
- ${Text(_("Currently the {platform_name} servers are down")).format(
- platform_name=HTML(u"{}").format(Text(static.get_platform_name()))
- )}
-
-
- ${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('{0}').format(Text(static.get_tech_support_email_address()))
- )}
+
+ <%block name="pageheader">
+ % if page_header:
+ ${page_header}
+ % else:
+ ${Text(_("Currently the {platform_name} servers are down")).format(
+ platform_name=HTML(u"{}").format(Text(static.get_platform_name()))
+ )}
+ % endif
+ %block>
+
+
+ <%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('{0}').format(Text(static.get_tech_support_email_address()))
+ )}
+ % endif
+ %block>
+
diff --git a/lms/templates/static_templates/server-error.html b/lms/templates/static_templates/server-error.html
index c89ace1000..4a022d931b 100644
--- a/lms/templates/static_templates/server-error.html
+++ b/lms/templates/static_templates/server-error.html
@@ -8,17 +8,29 @@ from openedx.core.djangolib.markup import HTML, Text
-
- ${Text(_(u"There has been a 500 error on the {platform_name} servers")).format(
- platform_name=HTML("{platform_name}").format(platform_name=Text(static.get_platform_name()))
- )}
-
-
- ${Text(_('Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.')).format(
- email=HTML('{email}').format(
- email=Text(static.get_tech_support_email_address())
- )
- )}
-
+
+ <%block name="pageheader">
+ % if page_header:
+ ${page_header}
+ % else:
+ ${Text(_(u"There has been a 500 error on the {platform_name} servers")).format(
+ platform_name=HTML("{platform_name}").format(platform_name=Text(static.get_platform_name()))
+ )}
+ % endif
+ %block>
+
+
+ <%block name="pagecontent">
+ % if page_content:
+ ${page_content}
+ % else:
+ ${Text(_('Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.')).format(
+ email=HTML('{email}').format(
+ email=Text(static.get_tech_support_email_address())
+ )
+ )}
+ % endif
+ %block>
+
diff --git a/lms/templates/static_templates/server-overloaded.html b/lms/templates/static_templates/server-overloaded.html
index d812fb0969..0b5d9c00bb 100644
--- a/lms/templates/static_templates/server-overloaded.html
+++ b/lms/templates/static_templates/server-overloaded.html
@@ -8,16 +8,28 @@ from openedx.core.djangolib.markup import HTML, Text
-
- ${Text(_("Currently the {platform_name} servers are overloaded")).format(
- platform_name=HTML("{}").format(platform_name=Text(static.get_platform_name()))
- )}
-
-
- ${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('{0}').format(tech_support_email=Text(static.get_tech_support_email_address()))
- )}
-
+
+ <%block name="pageheader">
+ % if page_header:
+ ${page_header}
+ % else:
+ ${Text(_("Currently the {platform_name} servers are overloaded")).format(
+ platform_name=HTML("{}").format(platform_name=Text(static.get_platform_name()))
+ )}
+ % endif
+ %block>
+
+
+ <%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('{0}').format(tech_support_email=Text(static.get_tech_support_email_address()))
+ )}
+ % endif
+ %block>
+
diff --git a/lms/templates/static_templates/tos.html b/lms/templates/static_templates/tos.html
index d48d437fd5..107b035943 100644
--- a/lms/templates/static_templates/tos.html
+++ b/lms/templates/static_templates/tos.html
@@ -6,7 +6,11 @@
- ${_("Terms of Service")}
- ${_("This page left intentionally blank. Feel free to add your own content.")}
+
+ <%block name="pageheader">${page_header or _("Terms of Service")}%block>
+
+
+ <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
+