need to include user options in the frags page too
This commit is contained in:
parent
d121a83b54
commit
516b7a6c02
|
@ -1,9 +1,10 @@
|
||||||
<div>{{ .TopHID }}</div>
|
<div>{{ .TopHID }}</div>
|
||||||
{{ $BonkCSRF := .HonkCSRF }}
|
{{ $BonkCSRF := .HonkCSRF }}
|
||||||
{{ $MapLink := .MapLink }}
|
{{ $MapLink := .MapLink }}
|
||||||
|
{{ $Badonk := .User.Options.Reaction }}
|
||||||
<div><p>{{ .ServerMessage }}</div>
|
<div><p>{{ .ServerMessage }}</div>
|
||||||
<div>
|
<div>
|
||||||
{{ range .Honks }}
|
{{ range .Honks }}
|
||||||
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF }}
|
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "Badonk" $Badonk }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
1
web.go
1
web.go
|
@ -2205,6 +2205,7 @@ func webhydra(w http.ResponseWriter, r *http.Request) {
|
||||||
reverbolate(userid, honks)
|
reverbolate(userid, honks)
|
||||||
templinfo["Honks"] = honks
|
templinfo["Honks"] = honks
|
||||||
templinfo["MapLink"] = getmaplink(u)
|
templinfo["MapLink"] = getmaplink(u)
|
||||||
|
templinfo["User"], _ = butwhatabout(u.Username)
|
||||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
err := readviews.Execute(w, "honkfrags.html", templinfo)
|
err := readviews.Execute(w, "honkfrags.html", templinfo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue