Commit 35307216 by frances botsford

Merge pull request #3577 from edx/frances/fix/404-and-500-page-layout

Fix for Studio 404 and 500 page layouts
STUD-864
parents df262d4f fb4cab43
...@@ -280,7 +280,8 @@ ...@@ -280,7 +280,8 @@
// ==================== // ====================
// CASE: user not signed in // CASE: user not signed in
.not-signedin { .not-signedin,
.view-util {
.wrapper-header { .wrapper-header {
......
// studio - views - sign up/in // studio - views - sign up/in
// ==================== // ====================
.view-signup, .view-signin { .view-signup,
.view-signin,
.view-util {
.wrapper-content { .wrapper-content {
margin: ($baseline*1.5) 0 0 0; margin: ($baseline*1.5) 0 0 0;
......
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%inherit file="base.html" /> <%inherit file="base.html" />
<%block name="title">${_("Page Not Found")}</%block> <%block name="title">${_("Page Not Found")}</%block>
<%block name="bodyclass">view-util util-404</%block>
<%block name="content">
<%block name="content">
<div class="wrapper-content wrapper"> <div class="wrapper-content wrapper">
<section class="content"> <section class="content">
<header>
<h1>${_("Page not found")}</h1> <h1 class="title title-1">${_("Page not found")}</h1>
</header>
<article class="content-primary" role="main">
<p>${_('The page that you were looking for was not found.')} <p>${_('The page that you were looking for was not found.')}
${_('Go back to the {homepage} or let us know about any pages that may have been moved at {email}.').format( ${_('Go back to the {homepage} or let us know about any pages that may have been moved at {email}.').format(
homepage='<a href="/">homepage</a>', homepage='<a href="/">homepage</a>',
...@@ -15,7 +18,7 @@ ...@@ -15,7 +18,7 @@
address=settings.TECH_SUPPORT_EMAIL, address=settings.TECH_SUPPORT_EMAIL,
))} ))}
</p> </p>
</article>
</section> </section>
</div> </div>
</%block> </%block>
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%inherit file="base.html" /> <%inherit file="base.html" />
<%block name="title">${_("Studio Server Error")}</%block> <%block name="title">${_("Studio Server Error")}</%block>
<%block name="bodyclass">view-util util-500</%block>
<%block name="content"> <%block name="content">
<div class="wrapper-content wrapper"> <div class="wrapper-content wrapper">
<section class="content"> <section class="content">
<h1>${_("The <em>Studio</em> servers encountered an error")}</h1> <header>
<h1 class="title title-1">${_("The <em>Studio</em> servers encountered an error")}</h1>
</header>
<article class="content-primary" role="main">
<p> <p>
${_("An error occurred in Studio and the page could not be loaded. Please try again in a few moments.")} ${_("An error occurred in Studio and the page could not be loaded. Please try again in a few moments.")}
${_("We've logged the error and our staff is currently working to resolve this error as soon as possible.")} ${_("We've logged the error and our staff is currently working to resolve this error as soon as possible.")}
...@@ -17,7 +19,7 @@ ...@@ -17,7 +19,7 @@
) )
)} )}
</p> </p>
</article>
</section> </section>
</div> </div>
</%block> </%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment