all repos — honk @ 9778397e34d83c1c6e60ea2306056112112fac35

my fork of honk

need to include user options in the frags page too
Ted Unangst tedu@tedunangst.com
Sun, 26 Apr 2020 15:12:37 -0400
commit

9778397e34d83c1c6e60ea2306056112112fac35

parent

38d44ccae26ff9d244b95c265997d5b31321b61f

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M views/honkfrags.htmlviews/honkfrags.html

@@ -1,9 +1,10 @@

<div>{{ .TopHID }}</div> {{ $BonkCSRF := .HonkCSRF }} {{ $MapLink := .MapLink }} +{{ $Badonk := .User.Options.Reaction }} <div><p>{{ .ServerMessage }}</div> <div> {{ range .Honks }} -{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF }} +{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "Badonk" $Badonk }} {{ end }} </div>
M web.goweb.go

@@ -2205,6 +2205,7 @@ }

reverbolate(userid, honks) templinfo["Honks"] = honks templinfo["MapLink"] = getmaplink(u) + templinfo["User"], _ = butwhatabout(u.Username) w.Header().Set("Content-Type", "text/html; charset=utf-8") err := readviews.Execute(w, "honkfrags.html", templinfo) if err != nil {