Merge pull request 'point the profile button at a users fully qualified profile page' (#24) from able-patch-1 into trunk

Reviewed-on: https://git.ablecorp.us/AbleOS/holey-bytes/pulls/24
This commit is contained in:
able 2024-11-18 06:09:19 -06:00
commit ab55ec0240

View file

@ -629,7 +629,7 @@ fn base(body: impl FnOnce(&mut String), session: Option<&Session>) -> Html<Strin
<button "hx-push-url"="/" "hx-get"="/index-view" "hx-target"="main" "hx-swap"="innerHTML">"depell"</button>
<section>
if let Some(username) = username {
<button "hx-push-url"="/profile" "hx-get"="/profile-view" "hx-target"="main"
<button "hx-push-url"={format_args!("/profile/{username}")} "hx-get"="/profile-view" "hx-target"="main"
"hx-swap"="innerHTML">username</button>
|f|{nav_button(f, "feed"); nav_button(f, "post")}
<button "hx-delete"="/login">"logout"</button>