Files
edx-platform/cms/templates/error.html
2021-12-13 20:30:32 +05:00

34 lines
1.3 KiB
HTML

<%page expression_filter="h"/>
<%inherit file="base.html" />
<%!
from django.utils.translation import gettext as _
from django.urls import reverse
from django.conf import settings
from openedx.core.djangolib.markup import Text
%>
<%block name="bodyclass">error</%block>
<%block name="title">
% if error == '404':
404 - ${_("Page Not Found")}
% elif error == '500':
500 - ${_("Internal Server Error")}
% endif
</%block>
<%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.")).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.")).format(
studio_name=settings.STUDIO_SHORT_NAME,
)}</p>
% endif
<a href="/" class="back-button">${_("Back to dashboard")}</a>
</article>
</%block>