mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-01 09:34:21 +00:00
Add reply links on thread page
This commit is contained in:
parent
e356520290
commit
d7fc7cf2f5
7 changed files with 103 additions and 24 deletions
|
@ -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}}
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
{{template "navigation.tmpl" .NavbarData}}
|
||||
<div class="page-title"> Thread </div>
|
||||
|
||||
{{range .Context.Ancestors}}
|
||||
{{range .Statuses}}
|
||||
{{template "status.tmpl" .}}
|
||||
{{end}}
|
||||
|
||||
{{template "status.tmpl" .Status}}
|
||||
{{if .PostReply}}
|
||||
{{if eq .ID $.ReplyToID}}
|
||||
<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="reply_to_id" value="{{.ReplyToID}}" />
|
||||
<label for="post-content"> Reply to {{.Status.Account.DisplayName}} </label>
|
||||
|
@ -20,8 +18,6 @@
|
|||
</form>
|
||||
{{end}}
|
||||
|
||||
{{range .Context.Descendants}}
|
||||
{{template "status.tmpl" .}}
|
||||
{{end}}
|
||||
|
||||
{{template "footer.tmpl"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue