1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Flatten errors module

This commit is contained in:
RGBCube 2024-01-06 16:12:39 +03:00
parent 7a62b78af2
commit d7848fcb6f
No known key found for this signature in database
4 changed files with 2 additions and 4 deletions

2
.gitignore vendored
View file

@ -2,8 +2,6 @@
!src/ !src/
!src/errors/ !src/errors/
!src/errors/internal_server_error/
!src/errors/not_found/
!src/page/ !src/page/
!src/page/cube/ !src/page/cube/
!src/page/text/ !src/page/text/

View file

@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
let response = response.set_body( let response = response.set_body(
cube::create( cube::create(
Some("Error"), Some("Error"),
asset::Css::Shared("not-found.css"), asset::Css::Shared("cube-grid.css"),
array::from_fn(|_| { array::from_fn(|_| {
(html! { (html! {
.frame { "error" } .frame { "error" }

View file

@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
let response = response.set_body( let response = response.set_body(
cube::create( cube::create(
Some("404"), Some("404"),
asset::Css::Shared("not-found.css"), asset::Css::Shared("cube-grid.css"),
array::from_fn(|_| { array::from_fn(|_| {
(html! { (html! {
.frame { .frame {