rework honkers page some
Ted Unangst tedu@tedunangst.com
Sun, 26 May 2019 16:04:39 -0400
2 files changed,
3 insertions(+),
5 deletions(-)
M
honk.go
→
honk.go
@@ -977,7 +977,7 @@ honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)
if honkerid > 0 { goodbye := r.FormValue("goodbye") - if goodbye == "goodbye" { + if goodbye == "F" { db := opendatabase() row := db.QueryRow("select xid from honkers where honkerid = ? and userid = ?", honkerid, u.UserID)
M
views/honkers.html
→
views/honkers.html
@@ -17,17 +17,15 @@ {{ range .Honkers }}
<section class="honk"> <header> <img alt="avatar" src="/a?a={{ .XID }}"> -<p style="font-size: 1.8em">{{ .Name }} +<p style="font-size: 1.8em"><a href="/h/{{ .Name }}">{{ .Name }}<a> </header> <p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a> <p>flavor: {{ .Flavor }} -<p><a href="/h/{{ .Name }}">honks</a> -<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }} <form action="/savehonker" method="POST"> <input type="hidden" name="CSRF" value="{{ $honkercsrf }}"> <input type="hidden" name="honkerid" value="{{ .ID }}"> <p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}"> -<p>depart: <input type="text" name="goodbye" value="" autocomplete=off> (say "goodbye") +<p>depart: <input type="text" name="goodbye" placeholder="press F" value="" autocomplete=off> <p><input type="submit" name="save" value="save"> </form> </section>