need the add honker button here too

This commit is contained in:
Ted Unangst 2021-03-09 19:07:52 -05:00
parent 9fad994309
commit 660c6776e1
1 changed files with 6 additions and 1 deletions

7
web.go
View File

@ -2221,7 +2221,12 @@ func webhydra(w http.ResponseWriter, r *http.Request) {
case "honker": case "honker":
xid := r.FormValue("xid") xid := r.FormValue("xid")
honks = gethonksbyxonker(userid, xid, wanted) 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 templinfo["ServerMessage"] = msg
default: default:
http.NotFound(w, r) http.NotFound(w, r)