{{define "components/thread-replies.html"}}
{{range .Descendants}}
{{template "components/status.html" dict "Status" .Status "Account" $.Account "CSRFToken" $.CSRFToken}}
{{end}} {{if and .Fetching (not .Descendants)}}
{{T "thread.fetching"}}
{{end}}
{{end}} {{/* Polling refreshes the thread and reply label without replacing the focused post. */}} {{define "components/thread-poll.html"}} {{$focus := .Status}} {{if $focus.BoostOfID}}{{$focus = $focus.BoostOf}}{{end}} {{if and $focus (or (and $focus.InReplyTo $focus.InReplyTo.Account) $focus.InReplyToURI)}}
{{template "components/reply-context.html" dict "Status" $focus "Account" .Account}}
{{end}}
{{range $i, $a := .Ancestors}}
{{template "components/status.html" dict "Status" $a "Account" $.Account "CSRFToken" $.CSRFToken}}
{{end}}
{{template "components/thread-replies.html" dict "StatusID" .StatusID "Descendants" .Descendants "AncestorCount" (len .Ancestors) "Account" .Account "CSRFToken" .CSRFToken "Fetching" .Fetching "PollTries" .PollTries}} {{end}}