{{define "components/profile-live.html"}}
{{if .PinnedStatuses}}
{{T "profile.pinned_posts"}}
{{range .PinnedStatuses}} {{statusCard . $.Account $.CSRFToken}} {{end}}
{{end}}
{{range .Statuses}} {{statusCard . $.Account $.CSRFToken}} {{else}} {{if not $.PinnedStatuses}}

{{T "profile.empty_heading"}}

{{T "profile.empty_body"}}

{{end}} {{end}}
{{if .TimelineCursor}} {{T "tag.load_older"}} {{end}}
{{end}} {{/* profile-poll.html is returned by the /partial/profile/{username}/live polling endpoint. It refreshes the stats out-of-band and re-renders the self-polling profile-live fragment, so a first-ever view of a remote account fills in posts/followers/following within a few seconds instead of staying blank until the next manual page load. */}} {{define "components/profile-poll.html"}}
{{.StatusesCount}} {{T "profile.posts"}}
{{if .HideFollowers}}
{{T "profile.hidden"}} {{T "follow_list.followers"}}
{{else}}
{{if not (and .Account .Account.HideFollowerCounts)}}{{.FollowersCount}} {{end}}{{T "follow_list.followers"}}
{{end}} {{if .HideFollowing}}
{{T "profile.hidden"}} {{T "follow_list.following"}}
{{else}}
{{.FollowingCount}} {{T "follow_list.following"}}
{{end}}
{{template "components/profile-live.html" .}} {{end}}