diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-23 17:29:14 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-23 17:29:14 +0100 |
| commit | 71b221e3e4df1190aa87331091a89243358e98c6 (patch) | |
| tree | e82899855ef079274fa2794e142107483cd551c9 /ui/src/components | |
| parent | 064a7906f6c6e18ad4ce5fb5a19e5e3d02144358 (diff) | |
| download | jellything-71b221e3e4df1190aa87331091a89243358e98c6.tar jellything-71b221e3e4df1190aa87331091a89243358e98c6.tar.bz2 jellything-71b221e3e4df1190aa87331091a89243358e98c6.tar.zst | |
move logout link to settings page
Diffstat (limited to 'ui/src/components')
| -rw-r--r-- | ui/src/components/user.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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") } |