Merge pull request #3903 from overleaf/as-clean-up-error-pages

Clean up error pages

GitOrigin-RevId: 764375124ef5349c97416339119471a166d727b5
This commit is contained in:
Jakob Ackermann 2021-04-15 16:23:23 +02:00 committed by Copybot
parent d2e6449e79
commit 78326fb352
4 changed files with 36 additions and 18 deletions

View file

@ -1,24 +1,22 @@
doctype html
html.full-height(itemscope, itemtype='http://schema.org/Product')
head
title Something went wrong
link(rel="icon", href="/favicon.ico")
if buildCssPath
link(rel="stylesheet", href=buildCssPath())
extends ../layout/layout-no-js
block vars
- metadata = { title: 'Something went wrong', viewport: true }
block body
body.full-height
main.content.content-alt.full-height
.container.full-height
.error-container.full-height
.error-details
p.error-status I'm sorry, Dave. I'm afraid I can't do that.
p.error-description(ng-non-bindable) There was a problem with your latest request
p.error-description There was a problem with your latest request
if(message)
|: #{message}
|.
br
| Please go back and try again.
p.error-description(ng-non-bindable)
p.error-description
| If the problem persists, please contact us at
|
a(href="mailto:" + settings.adminEmail) #{settings.adminEmail}

View file

@ -1,18 +1,16 @@
doctype html
html.full-height(itemscope, itemtype='http://schema.org/Product')
head
title Something went wrong
link(rel="icon", href="/favicon.ico")
if buildCssPath
link(rel="stylesheet", href=buildCssPath())
extends ../layout/layout-no-js
block vars
- metadata = { title: 'Something went wrong', viewport: true }
block body
body.full-height
main.content.content-alt.full-height
.container.full-height
.error-container.full-height
.error-details
p.error-status Something went wrong, sorry.
p.error-description(ng-non-bindable) Our staff are probably looking into this, but if it continues, please check our status page at
p.error-description Our staff are probably looking into this, but if it continues, please check our status page at
|
|
a(href="http://" + settings.statusPageUrl) #{settings.statusPageUrl}

View file

@ -0,0 +1,18 @@
doctype html
html(lang="en")
- metadata = metadata || {}
block vars
head
if (metadata && metadata.title)
title= metadata.title
if metadata && metadata.viewport
meta(name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes")
link(rel="icon", href="/favicon.ico")
if buildCssPath
link(rel="stylesheet", href=buildCssPath())
block body

View file

@ -14,7 +14,11 @@
.error-details {
flex: 1 1 50%;
padding: @line-height-computed * 2;
padding: @line-height-computed;
max-width: 90%;
@media (min-width: @screen-sm-min) {
padding: @line-height-computed * 2;
}
}
.error-status {