{{define "title"}}Private Photos{{end}} {{define "content"}}
{{$Root := .}}

Private Photos

{{if .IsGrantee}} {{.Pager.Total}} member{{Pluralize64 .Pager.Total}} {{Pluralize64 .Pager.Total "has" "have"}} granted you access to see their private photos {{else}} You have granted access to {{.Pager.Total}} member{{Pluralize64 .Pager.Total}} to see your private photos {{end}} (page {{.Pager.Page}} of {{.Pager.Pages}}).
{{if not .IsGrantee}} {{end}}
{{SimplePager .Pager}}
{{range .Users}}
{{InputCSRF}}
{{template "avatar-64x64" .}}

{{.NameOrUsername}}

{{.Username}} {{if not .Certified}} Not Certified! {{end}} {{if .IsAdmin}} Admin {{end}}

{{if not $Root.IsGrantee}}
{{if $Root.GranteeMap.Get .ID}} Sharing with me {{else}} Not sharing with me {{end}}
{{else}}
{{if $Root.GranteeMap.Get .ID}} I share with them {{else}} I do not share with them {{end}}
{{end}}
{{if not $Root.IsGrantee}}
{{end}}
{{end}}
{{end}}