{{define "like-example"}} {{$Outer := .}} {{if .LikeExample}}
Liked by {{range $i, $User := .LikeExample}}
{{if $User.ProfilePhoto.ID}} {{if and (eq $User.ProfilePhoto.Visibility "private") (not $User.UserRelationship.IsPrivateGranted)}} {{else if and (eq $User.ProfilePhoto.Visibility "friends") (not $User.UserRelationship.IsFriend)}} {{else if and (eq $User.ProfilePhoto.Visibility "circle") (not $User.UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}}
{{- $User.Username -}} {{if and (eq (len $Outer.LikeExample) 2) (not $Outer.LikeRemainder)}} {{if eq $i 0}} and {{end}} {{- else if gt (len $Outer.LikeExample) 1}},{{end}} {{end}} {{if .LikeRemainder}} and {{.LikeRemainder}} other{{Pluralize64 .LikeRemainder}}. {{end}}
{{end}} {{end}} {{define "like-modal"}}
{{end}}