all repos — honk @ 647c846225285633b42eb5af0f24ebf921e2780c

my fork of honk

display reply id where present
Ted Unangst tedu@tedunangst.com
Tue, 16 Apr 2019 17:11:04 -0400
commit

647c846225285633b42eb5af0f24ebf921e2780c

parent

88181480f3a47103d721a4f7ab431623c6085b13

2 files changed, 13 insertions(+), 1 deletions(-)

jump to
M fun.gofun.go

@@ -38,6 +38,9 @@ h.URL = h.Honker + "/h/" + h.XID

} else { h.URL = h.XID } + if h.RID != "" && strings.IndexByte(h.RID, '/') == -1 { + h.RID = h.Honker + "/h/" + h.RID + } } else { idx := strings.LastIndexByte(h.Honker, '/') if idx != -1 {
M views/honk.htmlviews/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 }}