diff options
author | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-09-27 12:21:37 -0600 |
---|---|---|
committer | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-09-27 12:21:37 -0600 |
commit | ccae2cb90ac79f1c138d1a5e5da6cb0f20b50607 (patch) | |
tree | 96cd9d2d52ab61351412becddcb72253ad7b6a6c /src/components/mod.rs | |
parent | af6366c336ee4ded8200362adb3f9e7156601ec1 (diff) |
Add logout button in header
Diffstat (limited to 'src/components/mod.rs')
-rw-r--r-- | src/components/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index 255f38a..9f7db1f 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -248,6 +248,11 @@ pub fn HTPage<'a, Children: render::Render>( <a href={format!("/users/{}", login.user.id)}> {hitide_icons::PERSON.img()} </a> + <form method={"POST"} action={"/logout"} class={"inline"}> + <button type={"submit"} class={"iconbutton"}> + {hitide_icons::LOGOUT.img()} + </button> + </form> </> }) } else { |