{{define "avatar-24x24"}} {{if .ProfilePhoto.ID}} {{if and (eq .ProfilePhoto.Visibility "private") (not .UserRelationship.IsPrivateGranted)}} {{else if and (eq .ProfilePhoto.Visibility "friends") (not .UserRelationship.IsFriend)}} {{else if and (eq .ProfilePhoto.Visibility "circle") (not .UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}} {{end}} {{define "avatar-48x48"}} {{if .ProfilePhoto.ID}} {{if and (eq .ProfilePhoto.Visibility "private") (not .UserRelationship.IsPrivateGranted)}} {{else if and (eq .ProfilePhoto.Visibility "friends") (not .UserRelationship.IsFriend)}} {{else if and (eq .ProfilePhoto.Visibility "circle") (not .UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}} {{end}} {{define "avatar-64x64"}} {{if .ProfilePhoto.ID}} {{if and (eq .ProfilePhoto.Visibility "private") (not .UserRelationship.IsPrivateGranted)}} {{else if and (eq .ProfilePhoto.Visibility "friends") (not .UserRelationship.IsFriend)}} {{else if and (eq .ProfilePhoto.Visibility "circle") (not .UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}} {{end}} {{define "avatar-96x96"}} {{if .ProfilePhoto.ID}} {{if and (eq .ProfilePhoto.Visibility "private") (not .UserRelationship.IsPrivateGranted)}} {{else if and (eq .ProfilePhoto.Visibility "friends") (not .UserRelationship.IsFriend)}} {{else if and (eq .ProfilePhoto.Visibility "circle") (not .UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}} {{end}} {{define "avatar-32x32"}} {{if .ProfilePhoto.ID}} {{if and (eq .ProfilePhoto.Visibility "private") (not .UserRelationship.IsPrivateGranted)}} {{else if and (eq .ProfilePhoto.Visibility "friends") (not .UserRelationship.IsFriend)}} {{else if and (eq .ProfilePhoto.Visibility "circle") (not .UserRelationship.IsInnerCirclePeer)}} {{else}} {{end}} {{else}} {{end}} {{end}}