need the add honker button here too
Ted Unangst tedu@tedunangst.com
Tue, 09 Mar 2021 19:07:52 -0500
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -2221,7 +2221,12 @@ templinfo["ServerMessage"] = "honks in convoy: " + c
case "honker": xid := r.FormValue("xid") honks = gethonksbyxonker(userid, xid, wanted) - msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>`, xid, xid) + miniform := templates.Sprintf(`<form action="/submithonker" method="POST"> + <input type="hidden" name="CSRF" value="%s"> + <input type="hidden" name="url" value="%s"> + <button tabindex=1 name="add honker" value="add honker">add honker</button> + </form>`, login.GetCSRF("submithonker", r), xid) + msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>%s`, xid, xid, miniform) templinfo["ServerMessage"] = msg default: http.NotFound(w, r)