diff options
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") } |