{{define "components/status-interactions.html"}} {{$canRefresh := and .Status.Account .Status.Account.Domain}} {{$hideFavourites := and .Account .Account.HideFavouriteCounts}} {{$hideBoosts := and .Account .Account.HideBoostCounts}}
{{if or (gt .Status.FavouritesCount 0) (gt .Status.ReblogsCount 0) .Quotes .Reactions $canRefresh}}
{{range .Reactions}}
{{if .Emoji}}{{.Name}}{{else}}{{end}} {{Tn .Count "interactions.reactions_count" .Count}}
{{end}} {{if gt .Status.FavouritesCount 0}}
{{if $hideFavourites}}{{T "interactions.likes"}}{{else}}{{Tn .Status.FavouritesCount "interactions.likes_count" .Status.FavouritesCount}}{{end}}
{{end}} {{if $canRefresh}} {{T "interactions.refresh"}} {{end}} {{if gt .Status.ReblogsCount 0}}
{{if $hideBoosts}}{{T "interactions.boosts"}}{{else}}{{Tn .Status.ReblogsCount "interactions.boosts_count" .Status.ReblogsCount}}{{end}}
{{end}} {{if .Quotes}}
{{Tn (len .Quotes) "interactions.quotes_count" (len .Quotes)}}
{{end}} {{/* A refresh pulls fresh counts from the origin; the action bar above shows the same numbers, so swap those two out of band or they stay stale until the next page load. Only on the partial: the full page already renders these spans, and a second copy would duplicate their ids. */}} {{if .OOBCounts}} {{if and (not $hideBoosts) (gt .Status.ReblogsCount 0)}}{{.Status.ReblogsCount}}{{end}} {{if and (not $hideFavourites) (gt .Status.FavouritesCount 0)}}{{.Status.FavouritesCount}}{{end}} {{end}}
{{end}}
{{end}}