diff options
author | r <r@freesoftwareextremist.com> | 2019-12-18 22:14:02 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-18 22:14:02 +0000 |
commit | d7fc7cf2f5e9c11a401ee34ed498bca762c72b79 (patch) | |
tree | ce0558257067eaf737c6fbcef1de8fef78c127fd /templates/status.tmpl | |
parent | e3565202903a051b19aa76b81a0b5f9f3fdea996 (diff) | |
download | bloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.tar.gz bloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.zip |
Add reply links on thread page
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r-- | templates/status.tmpl | 17 |
1 files changed, 15 insertions, 2 deletions
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" .}} <div class="status-container"> <div> - {{if ne .Account.ID ""}} + {{if not .HideAccountInfo}} <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> {{end}} </div> <div class="status"> - {{if ne .Account.ID ""}} + {{if not .HideAccountInfo}} <div class="status-name"> <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span> <span class="status-uname"> {{.Account.Acct}} </span> </div> {{end}} + <div class="status-reply-container"> + {{if .InReplyToID}} + <span class="icon dripicons-forward"></span> + <a class="status-reply-to" href="{{if not .ShowReplies}}/thread/{{.InReplyToID}}{{end}}#status-{{.InReplyToID}}"> reply to {{.Pleroma.InReplyToAccountAcct}} </a> + {{if index .ReplyMap .ID}} <span class="status-reply-info-divider"> - </span> {{end}} + {{end}} + {{if .ShowReplies}} + {{if index .ReplyMap .ID}} <span class="status-reply-text"> replies: </span> {{end}} + {{range index .ReplyMap .ID}} + <a class="status-reply" href="#status-{{.ID}}">#{{.Number}}</a> + {{end}} + {{end}} + </div> <div class="status-content"> {{WithEmojis .Content .Emojis}} </div> <div class="status-media-container"> {{range .MediaAttachments}} |