wrap up userabout in srvmsg so it gets replaced
Ted Unangst tedu@tedunangst.com
Sun, 03 Nov 2019 21:09:03 -0500
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
views/honkpage.html
→
views/honkpage.html
@@ -1,11 +1,13 @@
{{ template "header.html" . }} <main> <div class="info" id="infobox"> +<div id="srvmsg"> {{ if .Name }} <p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span> <p>{{ .WhatAbout }} {{ end }} -<div id="srvmsg"><p>{{ .ServerMessage }}</div> +<p>{{ .ServerMessage }} +</div> {{ if .HonkCSRF }} {{ template "honkform.html" . }} {{ end }}