mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Better error code templates.
This commit is contained in:
parent
a494e4d865
commit
67ea1019d4
4 changed files with 228 additions and 6 deletions
|
@ -36,6 +36,12 @@ server {
|
|||
root /home/sclay/newsblur/;
|
||||
rewrite ^(.*)$ /media/maintenance.html break;
|
||||
}
|
||||
|
||||
error_page 504 @timeout;
|
||||
location @timeout {
|
||||
root /home/sclay/newsblur/;
|
||||
rewrite ^(.*)$ /templates/502.html break;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
expires max;
|
||||
|
|
|
@ -1,3 +1,76 @@
|
|||
<h1>It's a 404!</h1>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="x-dns-prefetch-control" content="off"/>
|
||||
<meta name="robots" content="noindex"/>
|
||||
|
||||
<p><a href="{% url index %}">Return to NewsBlur</a></p>
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow-y: scroll
|
||||
}
|
||||
body {
|
||||
height: 100%;
|
||||
font-family: Arial,'Helvetica Neue',Helvetica,sans-serif;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background-color: #304332;
|
||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#304332), to(#172018));
|
||||
background: -moz-linear-gradient(center top , #304332 0%, #172018 100%) repeat scroll 0 0 transparent;
|
||||
|
||||
}
|
||||
#container {
|
||||
width: 500px
|
||||
}
|
||||
h1 {
|
||||
color: #fff;
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.68);
|
||||
letter-spacing: -1px;
|
||||
margin: 0;
|
||||
width: 500px;
|
||||
}
|
||||
.description {
|
||||
color: rgba(255, 255, 255, .8);
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,0.33);
|
||||
width: 450px;
|
||||
}
|
||||
.description a {
|
||||
color: #849EDB;
|
||||
text-decoration: none;
|
||||
}
|
||||
.description a:hover {
|
||||
color: #516BB7;
|
||||
}
|
||||
.error404 {
|
||||
color: #C5826E;
|
||||
}
|
||||
</style>
|
||||
<title>404 - NewsBlur can't find that page</title>
|
||||
</head>
|
||||
<body>
|
||||
<table height="100%" width="100%">
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<div id="container">
|
||||
<h1><span class="error404">404</span> · NewsBlur can't find that page</h1>
|
||||
<div class="description">
|
||||
<p>Either the URL you accessed doesn't point to anything or there is no site, story, or data with these parameters.</p>
|
||||
<p><a href="{% url index %}">Return to NewsBlur</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,73 @@
|
|||
<h1>It's an error!</h1>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="x-dns-prefetch-control" content="off"/>
|
||||
<meta name="robots" content="noindex"/>
|
||||
|
||||
<p>The error has been e-mailed and will hopefully be fixed so you won't have to see this again.</p>
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow-y: scroll
|
||||
}
|
||||
body {
|
||||
height: 100%;
|
||||
font-family: Arial,'Helvetica Neue',Helvetica,sans-serif;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background-color: #3F5354;
|
||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#3F5354), to(#1B2424));
|
||||
background: -moz-linear-gradient(center top , #3F5354 0%, #1B2424 100%) repeat scroll 0 0 transparent;
|
||||
|
||||
<p><a href="{% url index %}">Return to NewsBlur</a></p>
|
||||
}
|
||||
#container {
|
||||
width: 500px
|
||||
}
|
||||
h1 {
|
||||
color: #fff;
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.68);
|
||||
letter-spacing: -1px;
|
||||
margin: 0;
|
||||
width: 500px;
|
||||
}
|
||||
.description {
|
||||
color: rgba(255, 255, 255, .8);
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,0.33);
|
||||
width: 400px;
|
||||
}
|
||||
.description a {
|
||||
color: #849EDB;
|
||||
text-decoration: none;
|
||||
}
|
||||
.description a:hover {
|
||||
color: #516BB7;
|
||||
}
|
||||
</style>
|
||||
<title>NewsBlur experienced an error</title>
|
||||
</head>
|
||||
<body>
|
||||
<table height="100%" width="100%">
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<div id="container">
|
||||
<h1>NewsBlur experienced an error</h1>
|
||||
<div class="description">
|
||||
<p>The error has been logged and will be fixed soon so you won't have to see this message again.</p>
|
||||
<p><a href="{% url index %}">Return to NewsBlur</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1 +1,76 @@
|
|||
<body style="background-color: #F0F0F0;"><br><br><center><h1 style="color:#831818;text-shadow:0 1px 0 #FFF">5-oh-2</h1></center></body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="x-dns-prefetch-control" content="off"/>
|
||||
<meta name="robots" content="noindex"/>
|
||||
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow-y: scroll
|
||||
}
|
||||
body {
|
||||
height: 100%;
|
||||
font-family: Arial,'Helvetica Neue',Helvetica,sans-serif;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background-color: #232732;
|
||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#232732), to(#15171E));
|
||||
background: -moz-linear-gradient(center top , #232732 0%, #15171E 100%) repeat scroll 0 0 transparent;
|
||||
|
||||
}
|
||||
#container {
|
||||
width: 500px
|
||||
}
|
||||
h1 {
|
||||
color: #fff;
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.68);
|
||||
letter-spacing: -1px;
|
||||
margin: 0;
|
||||
width: 500px;
|
||||
}
|
||||
.description {
|
||||
color: rgba(255, 255, 255, .8);
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,0.33);
|
||||
width: 450px;
|
||||
}
|
||||
.description a {
|
||||
color: #849EDB;
|
||||
text-decoration: none;
|
||||
}
|
||||
.description a:hover {
|
||||
color: #516BB7;
|
||||
}
|
||||
.error404 {
|
||||
color: #C5826E;
|
||||
}
|
||||
</style>
|
||||
<title>502 - NewsBlur is down</title>
|
||||
</head>
|
||||
<body>
|
||||
<table height="100%" width="100%">
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<div id="container">
|
||||
<h1><span class="error404">502</span> · NewsBlur is down</h1>
|
||||
<div class="description">
|
||||
<p>Please wait patiently while NewsBlur comes back.</p>
|
||||
<p><a href="{% url index %}">@newsblur on Twitter</a> may have more information.</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue