aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/account/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-05-16 19:35:29 +0200
committermetamuffin <metamuffin@disroot.org>2023-05-16 19:35:29 +0200
commitb0d77c36ba632b91d65047716ca0a3e4176eaf4c (patch)
tree881d5448b5f28dabe4f6eeb7ace1bb4f50af5fc6 /server/src/routes/ui/account/mod.rs
parent3eda83a00f1c3e065a3e36675b40cc240cdb6ed6 (diff)
downloadjellything-b0d77c36ba632b91d65047716ca0a3e4176eaf4c.tar
jellything-b0d77c36ba632b91d65047716ca0a3e4176eaf4c.tar.bz2
jellything-b0d77c36ba632b91d65047716ca0a3e4176eaf4c.tar.zst
add class to layout
Diffstat (limited to 'server/src/routes/ui/account/mod.rs')
-rw-r--r--server/src/routes/ui/account/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/routes/ui/account/mod.rs b/server/src/routes/ui/account/mod.rs
index 8e6d054..d4afb06 100644
--- a/server/src/routes/ui/account/mod.rs
+++ b/server/src/routes/ui/account/mod.rs
@@ -55,6 +55,7 @@ pub async fn r_account_register() -> DynLayoutPage<'static> {
input[type="submit", value="Register now!"];
}
},
+ ..Default::default()
}
}
@@ -84,6 +85,7 @@ pub fn r_account_login() -> DynLayoutPage<'static> {
p { "While logged in, a cookie will be used to identify you." }
}
},
+ ..Default::default()
}
}
@@ -97,6 +99,7 @@ pub fn r_account_logout() -> DynLayoutPage<'static> {
input[type="submit", value="Log out."];
}
},
+ ..Default::default()
}
}
@@ -132,6 +135,7 @@ pub fn r_account_register_post<'a>(
content: markup::new! {
h1 { "Registration successful, you may log in now." }
},
+ ..Default::default()
}),
Err(_) => Err(MyError(anyhow!("username is taken"))),
}