diff options
author | cel 🌸 <cel@blos.sm> | 2023-10-04 19:55:17 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-10-04 19:59:53 +0100 |
commit | 5d395d4ed73061b247c32dc63db6ddfa2dd62d39 (patch) | |
tree | 084df0c83294123c6e884fa46d022f120ba5de86 /templates/error.rs.html | |
download | pinussy-5d395d4ed73061b247c32dc63db6ddfa2dd62d39.tar.gz pinussy-5d395d4ed73061b247c32dc63db6ddfa2dd62d39.tar.bz2 pinussy-5d395d4ed73061b247c32dc63db6ddfa2dd62d39.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | templates/error.rs.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/error.rs.html b/templates/error.rs.html new file mode 100644 index 0000000..cebb935 --- /dev/null +++ b/templates/error.rs.html @@ -0,0 +1,24 @@ +@use super::statics::*; +@use actix_web::http::StatusCode; + +@(code: StatusCode, message: &str) + +<!doctype html> +<html lang="en" class="error"> + +<head> + <title>Error @code.as_u16(): @code.canonical_reason().unwrap_or("error")</title> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <link rel="stylesheet" type="text/css" href="/static/@style_css.name" /> +</head> + +<body> + <main> + <h1>@code.canonical_reason().unwrap_or("error")</h1> + + <p>@message</p> + <p>oopsie!</p> + </main> +</body> + +</html>
\ No newline at end of file |