From 2cb07e026ab1bdf3d4f6f11804732ebb7de4b338 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 5 Sep 2019 17:45:10 -0400 Subject: [PATCH] record starting page name --- honk.go | 2 ++ views/honkpage.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/honk.go b/honk.go index ea5459e..d381de8 100644 --- a/honk.go +++ b/honk.go @@ -169,8 +169,10 @@ func homepage(w http.ResponseWriter, r *http.Request) { } else { userid = u.UserID if r.URL.Path == "/atme" { + templinfo["PageName"] = "atme" honks = gethonksforme(userid) } else { + templinfo["PageName"] = "home" honks = gethonksforuser(userid) honks = osmosis(honks, userid) } diff --git a/views/honkpage.html b/views/honkpage.html index a71bb7a..951631a 100644 --- a/views/honkpage.html +++ b/views/honkpage.html @@ -14,9 +14,9 @@ {{ if .TopXID }}