Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 83 additions & 183 deletions src/objects/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,210 +1,110 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

<title> - Server Error</title>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<style type="text/css">
/*
* Globals
*/

/* Links */
a,
a:focus,
a:hover {
color: #fff;
}

/* Custom default button */
.btn-default,
.btn-default:hover,
.btn-default:focus {
color: #333;
text-shadow: none; /* Prevent inheritence from `body` */
}


/*
* Base structure
*/

html,
body {
height: 100%;
background-color: #fff;
}
body {
color: #333;
text-align: center;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
display: table;
width: 100%;
height: 100%; /* For at least Firefox */
min-height: 100%;
}
.site-wrapper-inner {
display: table-cell;
vertical-align: top;
}
.cover-container {
margin-right: auto;
margin-left: auto;
}

/* Padding for spacing */
.inner {
padding: 30px;
}


/*
* Header
*/
.masthead-brand {
margin-top: 10px;
margin-bottom: 10px;
}

.masthead-nav > li {
display: inline-block;
}
.masthead-nav > li + li {
margin-left: 20px;
}
.masthead-nav > li > a {
padding-right: 0;
padding-left: 0;
font-size: 16px;
font-weight: bold;
color: #fff; /* IE8 proofing */
color: rgba(255,255,255,.75);
border-bottom: 2px solid transparent;
}
.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
background-color: transparent;
border-bottom-color: #a9a9a9;
border-bottom-color: rgba(255,255,255,.25);
}
.masthead-nav > .active > a,
.masthead-nav > .active > a:hover,
.masthead-nav > .active > a:focus {
color: #fff;
border-bottom-color: #fff;
}

@media (min-width: 768px) {
.masthead-brand {
float: left;
}
.masthead-nav {
float: right;
}
}


/*
* Cover
*/

.cover {
padding: 0 20px;
}
.cover .btn-lg {
padding: 10px 20px;
font-weight: bold;
}


/*
* Footer
*/

.mastfoot {
color: #999; /* IE8 proofing */
color: rgba(255,255,255,.5);
}


/*
* Affix and center
*/

@media (min-width: 768px) {
/* Pull out the header and footer */
.masthead {
position: fixed;
top: 0;
}
.mastfoot {
position: fixed;
bottom: 0;
}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Server Error</title>

<style>
/* Base structure */
html, body {
height: 100%;
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
color: #333;
background: #fff;
text-align: center;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
}

h1 {
font-size: 36px;
margin: 20px 0 10px;
font-weight: 500;
}

.lead {
margin: 0 0 20px;
font-size: 16px;
font-weight: 300;
line-height: 1.4;
}

/* Layout centering */
.site-wrapper {
display: table;
width: 100%;
height: 100%;
}
.site-wrapper-inner {
display: table-cell;
vertical-align: top;
}
.cover-container {
margin-right: auto;
margin-left: auto;
}

/* Button styling */
.button {
display: inline-block;
padding: 8px 16px;
font-size: 14px;
font-weight: bold;
color: #333;
text-decoration: none;
border: 1px solid #ccc;
border-radius: 4px;
background: linear-gradient(#f5f5f5, #e0e0e0);
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
cursor: pointer;
}

.button:hover {
background: linear-gradient(#eaeaea, #d5d5d5);
}

.button:active {
background: linear-gradient(#dcdcdc, #c8c8c8);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
/* Start the vertical centering */
.site-wrapper-inner {
vertical-align: middle;
}
/* Handle the widths */
.masthead,
.mastfoot,
.cover-container {
width: 100%; /* Must be percentage or pixels for horizontal alignment */
}
}

@media (min-width: 992px) {
.masthead,
.mastfoot,
.cover-container {
width: 700px;
}
}
</style>

</style>
</head>

<body>
<div class="site-wrapper">

<div class="site-wrapper-inner">

<div class="cover-container">

<div class="inner cover">
<h1 class="cover-heading">Sorry, a server error has occurred (500)</h1>
<p class="lead">We have been automatically notified about the problem and will investigate as soon as possible.</p>
{% if request.sentry.id %}
<p>If you need assistance, you may reference this error as
<strong>{{ request.sentry.id }}</strong>.</p>
{% endif %}
<p class="lead">
<a href="/" class="btn btn-lg btn-default">Back to home</a>
</p>
</div>

<h1>Sorry, a server error has occurred (500)</h1>
<p class="lead">We have been automatically notified about the problem and will investigate as soon as possible.</p>
{% if request.sentry.id %}
<p>If you need assistance, you may reference this error as
<strong>{{ request.sentry.id }}</strong>.</p>
{% endif %}
<p class="lead">
<a href="/" class="button">Back to home</a>
</p>
</div>

</div>

</div>
</body>

</html>
Loading