Skip to content

Commit 5ef4903

Browse files
committed
cleanup
1 parent 39f5668 commit 5ef4903

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

lib/Mojolicious/Controller.pm

+21-20
Original file line numberDiff line numberDiff line change
@@ -809,20 +809,19 @@ __DATA__
809809
<!doctype html><html>
810810
<head><title>Server Error</title></head>
811811
%= stylesheet begin
812-
a img { border: 0; }
813-
body {
814-
background-color: #caecf6;
815-
text-align: center;
816-
}
812+
body { background-color: #caecf6; }
817813
#raptor {
814+
background: url(<%= url_for '/failraptor.png' %>);
815+
height: 488px;
816+
left: 50%;
817+
margin-left: -371px;
818818
margin-top: -244px;
819-
position: relative;
819+
position:absolute;
820820
top: 50%;
821+
width: 743px;
821822
}
822823
% end
823-
<body>
824-
%= image '/failraptor.png', alt => 'Server error!', id => 'raptor'
825-
</body>
824+
<body><div id="raptor"></div></body>
826825
</html>
827826
828827
@@ exception.development.html.ep
@@ -1073,26 +1072,28 @@ __DATA__
10731072
<head><title>Page Not Found</title></head>
10741073
%= stylesheet begin
10751074
a img { border: 0; }
1076-
body {
1077-
background-color: #caecf6;
1078-
text-align: center;
1079-
}
1080-
#notfound {
1081-
margin-top: -31px;
1082-
position: relative;
1083-
top: 50%;
1084-
}
1075+
body { background-color: #caecf6; }
10851076
#noraptor {
10861077
left: 0%;
10871078
position: fixed;
10881079
top: 60%;
10891080
}
1081+
#notfound {
1082+
background: url(<%= url_for '/mojolicious-notfound.png' %>);
1083+
height: 62px;
1084+
left: 50%;
1085+
margin-left: -153px;
1086+
margin-top: -31px;
1087+
position:absolute;
1088+
top: 50%;
1089+
width: 306px;
1090+
}
10901091
% end
10911092
<body>
10921093
%= link_to url_for->base => begin
1093-
%= image '/noraptor.png', alt => 'Raptor not found!', id => 'noraptor'
1094+
%= image '/mojolicious-noraptor.png', alt => 'Bye!', id => 'noraptor'
10941095
% end
1095-
%= image '/notfound.png', alt => 'Page not found!', id => 'notfound'
1096+
<div id="notfound"></div>
10961097
</body>
10971098
</html>
10981099
<!-- a padding to disable MSIE and Chrome friendly error page -->

0 commit comments

Comments
 (0)