don't forget to fix html5 on other pages too
Ted Unangst tedu@tedunangst.com
Sun, 28 Apr 2019 19:31:27 -0400
4 files changed,
12 insertions(+),
15 deletions(-)
M
views/honkers.html
→
views/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.html
→
views/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.html
→
views/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.html
→
views/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>