mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Update view.cr
This commit is contained in:
parent
7ad319c70d
commit
47f505ff76
1 changed files with 22 additions and 0 deletions
|
@ -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
|
# Template for 404 Not Found
|
||||||
def render_404
|
def render_404
|
||||||
template = <<-HTML
|
template = <<-HTML
|
||||||
|
|
Loading…
Reference in a new issue