all repos — honk @ 31d9533914cb6762aaa9ea9feab14167a47a5682

my fork of honk

don't forget to fix html5 on other pages too
Ted Unangst tedu@tedunangst.com
Sun, 28 Apr 2019 19:31:27 -0400
commit

31d9533914cb6762aaa9ea9feab14167a47a5682

parent

ad25b0ff2420477d91ffa0d3203d0449e5e1506e

4 files changed, 12 insertions(+), 15 deletions(-)

jump to
M views/honkers.htmlviews/honkers.html

@@ -1,5 +1,5 @@

{{ template "header.html" . }} -<div class="center"> +<main> <div class="info"> <p> <form action="/savehonker" method="POST">

@@ -14,11 +14,11 @@ </form>

</div> {{ $honkercsrf := .HonkerCSRF }} {{ range .Honkers }} -<div class="honk"> -<div class="title"> +<section class="honk"> +<header> <img alt="avatar" src="/a?a={{ .XID }}"> <p style="font-size: 1.8em">{{ .Name }} -</div> +</header> <p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a> <p>flavor: {{ .Flavor }} <p><a href="/h/{{ .Name }}">honks</a>

@@ -30,7 +30,6 @@ <p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">

<p>depart: <input type="text" name="goodbye" value="" autocomplete=off> (say "goodbye") <p><input type="submit" name="save" value="save"> </form> -</div> +</section> {{ end }} -</div> -</div> +</main>
M views/honkpage.htmlviews/honkpage.html

@@ -21,7 +21,6 @@ {{ if .HonkCSRF }}

{{ template "honkform.html" . }} {{ end }} </div> -<div> {{ $BonkCSRF := .HonkCSRF }} {{ range .Honks }} {{ template "honk.html" map "Honk" . "BonkCSRF" $BonkCSRF }}
M views/login.htmlviews/login.html

@@ -1,5 +1,5 @@

{{ template "header.html" . }} -<div class="center"> +<main> <div class="info"> <form action="/dologin" method="POST"> <p><span class="title">login</span>

@@ -8,4 +8,4 @@ <p><input tabindex=1 type="password" name="password"> - password

<p><input tabindex=1 type="submit" name="login" value="login"> </form> </div> -</div> +</main>
M views/zonkers.htmlviews/zonkers.html

@@ -1,5 +1,5 @@

{{ template "header.html" . }} -<div class="center"> +<main> <div class="info"> <p> <form action="/killitwithfire" method="POST">

@@ -21,7 +21,7 @@ </form>

</div> {{ $killcsrf := .KillCSRF }} {{ range .Zonkers }} -<div class="honk"> +<section class="honk"> <p>What: {{ .Name }} <p>Where: {{ .Wherefore }} <form action="/killitwithfire" method="POST">

@@ -31,7 +31,6 @@ <input type="hidden" name="itsok" value="iforgiveyou">

<input type="submit" name="pardon" value="pardon"> </form> <p> -</div> +</section> {{ end }} -</div> -</div> +</main>