display reply id where present
Ted Unangst tedu@tedunangst.com
Tue, 16 Apr 2019 17:11:04 -0400
2 files changed,
13 insertions(+),
1 deletions(-)
M
views/honk.html
→
views/honk.html
@@ -1,6 +1,15 @@
<div class="honk {{ .Honk.What }}"> {{ with .Honk }} -<div class="title"><img alt="avatar" src="/a?a={{ .Honker}}"><p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip">{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} <a href="{{ .URL }}" rel=noreferrer>{{ .URL }}</a></span></div> +<div class="title"> +<img alt="avatar" src="/a?a={{ .Honker}}"> +<p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip">{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} <a href="{{ .URL }}" rel=noreferrer>{{ .URL }}</a></span> +{{ if .RID }} +<br> +<span style="margin-left: 4em;" class="clip"> +in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a> +</span> +{{ end }} +</div> <div class="noise"> <p>{{ .HTML }} {{ range .Donks }}