all repos — honk @ dde3931e4d5573c61973290f876d62554616b4b2

my fork of honk

need the add honker button here too
Ted Unangst tedu@tedunangst.com
Tue, 09 Mar 2021 19:07:52 -0500
commit

dde3931e4d5573c61973290f876d62554616b4b2

parent

25ee0e19b4d596f7e22714a2c7a65f88b936c563

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M web.goweb.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)