updated cms pages
This commit is contained in:
@@ -17,11 +17,8 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<article class="content-primary" role="main">
|
||||
<p>
|
||||
${_('The page that you were looking for was not found.')}
|
||||
${Text(_('Go back to the {homepage} or let us know about any pages that may have been moved at {email}.')).format(
|
||||
${Text(_('Go back to the {homepage}.')).format(
|
||||
homepage=HTML('<a href="/">homepage</a>'),
|
||||
email=HTML('<a href="mailto:{address}">{address}</a>').format(
|
||||
address=Text(settings.TECH_SUPPORT_EMAIL)
|
||||
)
|
||||
)}
|
||||
</p>
|
||||
</article>
|
||||
|
||||
@@ -29,10 +29,6 @@ ${Text(_("{studio_name} Server Error")).format(
|
||||
studio_name=Text(settings.STUDIO_SHORT_NAME),
|
||||
)}
|
||||
${_("We've logged the error and our staff is currently working to resolve this error as soon as possible.")}
|
||||
${Text(_(u'If the problem persists, please email us at {email_link}.')).format(
|
||||
email_link=HTML(u'<a href="mailto:{email_address}">{email_address}</a>').format(
|
||||
email_address=Text(settings.TECH_SUPPORT_EMAIL),
|
||||
)
|
||||
)}
|
||||
</p>
|
||||
</article>
|
||||
|
||||
@@ -14,26 +14,17 @@ from django.conf import settings
|
||||
% endif
|
||||
</%block>
|
||||
|
||||
<%!
|
||||
help_link_start = '<a href="mailto:{email}">'.format(email=settings.TECH_SUPPORT_EMAIL)
|
||||
help_link_end = '</a>'
|
||||
%>
|
||||
|
||||
<%block name="content">
|
||||
<article class="error-prompt">
|
||||
% if error == '404':
|
||||
<h1>${_("The Page You Requested Page Cannot be Found")}</h1>
|
||||
<p class="description">${Text(_("We're sorry. We couldn't find the {studio_name} page you're looking for. You may want to return to the {studio_name} Dashboard and try again. If you are still having problems accessing things, please feel free to {link_start}contact {studio_name} support{link_end} for further help.")).format(
|
||||
studio_name=settings.STUDIO_SHORT_NAME,
|
||||
link_start=HTML(help_link_start),
|
||||
link_end=HTML(help_link_end),
|
||||
<p class="description">${Text(_("We're sorry. We couldn't find the {studio_name} page you're looking for. You may want to return to the {studio_name} Dashboard and try again.")).format(
|
||||
studio_name=settings.STUDIO_SHORT_NAME
|
||||
)}</p>
|
||||
% elif error == '500':
|
||||
<h1>${_("The Server Encountered an Error")}</h1>
|
||||
<p class="description">${Text(_("We're sorry. There was a problem with the server while trying to process your last request. You may want to return to the {studio_name} Dashboard or try this request again. If you are still having problems accessing things, please feel free to {link_start}contact {studio_name} support{link_end} for further help.")).format(
|
||||
<p class="description">${Text(_("We're sorry. There was a problem with the server while trying to process your last request. You may want to return to the {studio_name} Dashboard or try this request again.")).format(
|
||||
studio_name=settings.STUDIO_SHORT_NAME,
|
||||
link_start=HTML(help_link_start),
|
||||
link_end=HTML(help_link_end),
|
||||
)}</p>
|
||||
% endif
|
||||
<a href="/" class="back-button">${_("Back to dashboard")}</a>
|
||||
|
||||
Reference in New Issue
Block a user