aboutsummaryrefslogtreecommitdiff
path: root/ui/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/error.rs')
-rw-r--r--ui/src/error.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/ui/src/error.rs b/ui/src/error.rs
deleted file mode 100644
index 23d323a..0000000
--- a/ui/src/error.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- This file is part of jellything (https://codeberg.org/metamuffin/jellything)
- which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
- Copyright (C) 2026 metamuffin <metamuffin.org>
-*/
-
-use crate::Page;
-use jellycommon::routes::u_account_login;
-
-impl Page for ErrorPage {
- fn title(&self) -> String {
- "Error".to_string()
- }
- fn to_render(&self) -> markup::DynRender<'_> {
- markup::new!(@self)
- }
-}
-
-markup::define! {
- ErrorPage(status: String) {
- h2 { "Error" }
- p { @status }
- // @if status == Status::NotFound {
- p { "You might need to " a[href=u_account_login()] { "log in" } ", to see this page" }
- // }
- }
-}