From d7fc7cf2f5e9c11a401ee34ed498bca762c72b79 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 18 Dec 2019 22:14:02 +0000 Subject: Add reply links on thread page --- templates/status.tmpl | 17 +++++++++++++++-- templates/thread.tmpl | 8 ++------ 2 files changed, 17 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/status.tmpl b/templates/status.tmpl index 7020be0..4dbbe3c 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -11,17 +11,30 @@ {{block "status" .}}
- {{if ne .Account.ID ""}} + {{if not .HideAccountInfo}} profile-avatar {{end}}
- {{if ne .Account.ID ""}} + {{if not .HideAccountInfo}}
{{WithEmojis .Account.DisplayName .Account.Emojis}} {{.Account.Acct}}
{{end}} +
+ {{if .InReplyToID}} + + reply to {{.Pleroma.InReplyToAccountAcct}} + {{if index .ReplyMap .ID}} - {{end}} + {{end}} + {{if .ShowReplies}} + {{if index .ReplyMap .ID}} replies: {{end}} + {{range index .ReplyMap .ID}} + #{{.Number}} + {{end}} + {{end}} +
{{WithEmojis .Content .Emojis}}
{{range .MediaAttachments}} diff --git a/templates/thread.tmpl b/templates/thread.tmpl index 29d702b..e36c5ea 100644 --- a/templates/thread.tmpl +++ b/templates/thread.tmpl @@ -2,12 +2,10 @@ {{template "navigation.tmpl" .NavbarData}}
Thread
-{{range .Context.Ancestors}} +{{range .Statuses}} {{template "status.tmpl" .}} -{{end}} -{{template "status.tmpl" .Status}} -{{if .PostReply}} +{{if eq .ID $.ReplyToID}}
@@ -20,8 +18,6 @@
{{end}} -{{range .Context.Descendants}} -{{template "status.tmpl" .}} {{end}} {{template "footer.tmpl"}} -- cgit v1.2.3