From 71b221e3e4df1190aa87331091a89243358e98c6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 23 Feb 2026 17:29:14 +0100 Subject: move logout link to settings page --- ui/src/components/user.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui/src/components') diff --git a/ui/src/components/user.rs b/ui/src/components/user.rs index 815c555..600af22 100644 --- a/ui/src/components/user.rs +++ b/ui/src/components/user.rs @@ -7,7 +7,7 @@ use crate::RenderInfo; use jellycommon::{ jellyobject::Object, - routes::{u_account_login, u_account_settings}, + routes::{u_account_login, u_account_logout, u_account_settings}, *, }; use jellyui_locale::tr; @@ -17,7 +17,8 @@ markup::define! { h1 { @tr(ri.lang, "settings") } h2 { @tr(ri.lang, "settings.account") } - a.switch_account[href=u_account_login()] { "Switch Account" } + a.switch_account[href=u_account_login()] { button { "Switch Account" } } + a.switch_account[href=u_account_logout()] { button { "Log out" } } p { @tr(ri.lang, "tag.Ulgn") ": " @user.get(USER_LOGIN) } form[method="POST", action=u_account_settings()] { label[for="name"] { @tr(ri.lang, "tag.Unam") } -- cgit v1.3