error.html 1.74 KB
Newer Older
David Baumgold committed
1
<%! from django.utils.translation import ugettext as _ %>
2 3 4 5 6
<%inherit file="base.html" />
<%! from django.core.urlresolvers import reverse %>
<%block name="bodyclass">error</%block>
<%block name="title">
  % if error == '404':
David Baumgold committed
7
    404 - ${_("Page Not Found")}
8
  % elif error == '500':
David Baumgold committed
9
    500 - ${_("Internal Server Error")}
10 11 12 13 14 15
  % endif
</%block>

<%block name="content">
  <article class="error-prompt">
    % if error == '404':
David Baumgold committed
16 17 18 19 20 21 22 23 24 25 26 27 28
      <h1>${_("The Page You Requested Page Cannot be Found")}</h1>
      <p class="description">${_("We're sorry. We couldn't find the Studio page you're looking for. You may want to return to the Studio Dashboard and try again. If you are still having problems accessing things, please feel free to {link_start}contact Studio support{link_end} for further help.").format(
          link_start='<a href="http://help.edge.edx.org/discussion/new" class="show-tender" title="{title}">'.format(title=_("Use our feedback tool, Tender, to share your feedback")),
          link_end='</a>',
        )}</p>
    % elif error == '500':
      <h1>${_("The Server Encountered an Error")}</h1>
      <p class="description">${_("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 Dashboard or try this request again. If you are still having problems accessing things, please feel free to {link_start}contact Studio support{link_end} for further help.").format(
          link_start='<a href="http://help.edge.edx.org/discussion/new" class="show-tender" title="{title}">'.format(title=_("Use our feedback tool, Tender, to share your feedback")),
          link_end='</a>',
        )}</p>
    % endif
    <a href="/" class="back-button">${_("Back to dashboard")}</a>
29
  </article>
David Baumgold committed
30
</%block>