Skip to content

Commit 7f9f2ba

Browse files
author
linh
committed
added error page template to cloud9
1 parent 3d72c16 commit 7f9f2ba

File tree

6 files changed

+93
-1
lines changed

6 files changed

+93
-1
lines changed

client/style/error.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
HTML {
2+
/* overflow : hidden;*/
3+
background : #e2f6fd;
4+
height: 100%;
5+
}
6+
BODY {
7+
background: #e2f6fd url(images/main_bg.jpg) repeat-y 0 0;
8+
font-family : "Trebuchet MS";
9+
color : #89b0c0;
10+
margin : 0;
11+
padding : 0 ;
12+
font-size : 12px;
13+
height: 100%;
14+
}
15+
.mainwarper {
16+
width: 100%;
17+
/* margin: 0;*/
18+
min-height: 600px;
19+
/* height: auto;*/
20+
_height: auto !important;
21+
margin-bottom: -40px;
22+
height: 100%;
23+
position: relative;
24+
z-index: 0;
25+
min-width: 1024px;
26+
background: url(images/header_bg.png) no-repeat center top;
27+
}
28+
.maincontent {
29+
margin: 0 auto;
30+
width: 1024px;
31+
padding: 0 10px;
32+
min-height: 500px;
33+
}
34+
.error_logo {
35+
margin: 0 auto;
36+
width: 441px;
37+
height: 470px;
38+
background: url(images/error_logo.png) no-repeat 0 0;
39+
}
40+
.error_msgbox {
41+
}
42+
.error_msg1 {
43+
text-align: center;
44+
color: #195278;
45+
font-family: Arial;
46+
font-size: 20px;
47+
font-weight: bold;
48+
padding: 30px 0 10px 0;
49+
white-space: no-wrap;
50+
}
51+
.error_msg2 {
52+
text-align: center;
53+
color: #195278;
54+
font-family: Arial;
55+
font-size: 12px;
56+
font-weight: bold;
57+
}
58+
.error_msg2 a {
59+
color: #188f36;
60+
text-decoration : none;
61+
}
62+
.error_msg2 a:hover {
63+
text-decoration : underline;
64+
}
65+
.error_msg2 img {
66+
border: none;
67+
}

client/style/images/error_logo.png

32.9 KB
Loading

client/style/images/header_bg.png

37.9 KB
Loading

client/style/images/main_bg.jpg

1.5 KB
Loading

server/cloud9/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exports.errorHandler = function() {
5252

5353
var isXHR = req.headers["x-requested-with"] && req.headers["x-requested-with"].toLowerCase() == "xmlhttprequest";
5454
if (!isXHR) {
55-
fs.readFile(__dirname + "/client/start/error.tmpl.html", "utf8", function(e, html) {
55+
fs.readFile(__dirname + "/view/error.tmpl.html", "utf8", function(e, html) {
5656
if (e)
5757
return next(e);
5858

server/cloud9/view/error.tmpl.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:a="http://ajax.org/2005/aml" >
3+
<head profile="http://www.w3.org/2005/10/profile">
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5+
<title>Cloud9 IDE - Ajax.org</title>
6+
<meta name="description" content=""/>
7+
<meta name="keywords" content=""/>
8+
9+
<link rel="icon" type="image/gif" href="/static/favicon.ico" />
10+
11+
<link rel="stylesheet" type="text/css" href="/static/style/error.css" />
12+
</head>
13+
<body>
14+
<div class="mainwarper">
15+
<div class="maincontent">
16+
<div class="error_logo">
17+
<div class="error_msgbox">
18+
<div class="error_msg1"><%errormsg%></div>
19+
<div class="error_msg2"><a href="javascript:location.reload(true)">Click here</a> to try again. If that doesn't work please send an e-mail to <a href="mailto:[email protected]">[email protected]</a></div>
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)