Update view.cr

This commit is contained in:
Ahmet Emre Aladağ 2016-01-05 17:35:07 +02:00
parent 7ad319c70d
commit 47f505ff76
1 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,25 @@
# Template for 403 Forbidden
def render_403
template = <<-HTML
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { text-align:center;font-family:helvetica,arial;font-size:22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:left}
</style>
</head>
<body>
<h2>Forbidden</h2>
<h3>Kemal doesn't allow you to see this page.</h3>
<img src="/__kemal__/404.png">
</body>
</html>
HTML
HTTP::Response.new(403, template)
end
# Template for 404 Not Found
def render_404
template = <<-HTML