{{define "title"}} {{if .IsSiteGallery}} Member Gallery {{else}} Photos of {{.User.Username}} {{if eq .User.Visibility "private"}}{{end}} {{end}} {{end}} {{define "card-body"}}
Uploaded {{.CreatedAt.Format "Jan _2 2006 15:04:05"}}
{{if .Explicit}} Explicit {{end}} {{if eq .Visibility "public"}} Public {{else if eq .Visibility "friends"}} Friends {{else if eq .Visibility "circle"}} {{PrettyCircle}} {{else}} Private {{end}} {{if .Gallery}} Gallery {{end}}
{{end}} {{define "card-footer"}} Edit Delete {{end}} {{define "content"}}

{{template "title" .}}

{{if or .IsOwnPhotos .IsSiteGallery}} {{end}}
{{$Root := .}}
{{if not .IsSiteGallery}} {{end}} {{if and .IsSiteGallery .IsShyUser}}
You have a Shy Account so you will only see pictures of you and your friends here. Learn more
{{end}} {{if .IsShyFrom}}
You have a Shy Account and you are not friends with this person so can not see their gallery. Learn more
{{end}}
{{if .Pager.Total}} Found {{.Pager.Total}} photo{{Pluralize64 .Pager.Total}} (page {{.Pager.Page}} of {{.Pager.Pages}}). {{if .ExplicitCount}} {{.ExplicitCount}} explicit photo{{Pluralize64 .ExplicitCount}} hidden per your settings. {{end}} {{else if .ExplicitCount}} {{.ExplicitCount}} explicit photo{{Pluralize64 .ExplicitCount}} hidden per your settings. {{end}}
{{if eq .FilterWho "friends"}}
Showing you all recent photos from yourself & your friends. See all certified members' gallery photos?
{{else if eq .FilterWho "friends+private"}}
Showing you all recent photos from yourself & your friends as well as any private photos shared with you by others on the site (if they are marked to appear in the Site Gallery).
{{end}}
{{if .IsSiteGallery}}
{{end}} {{if or .CurrentUser.Explicit .IsOwnPhotos}}
{{end}}
{{if and .IsSiteGallery (.CurrentUser.HasAdminScope "social.moderator.photo")}}
{{end}}
Reset
{{if .IsOwnPhotos}} {{else if not .IsSiteGallery}}
{{if not .IsMyPrivateUnlockedFor}} Grant {{.User.Username}} access to see my private photos {{else}} You had granted {{.User.Username}} access to see your private photos. Manage that here. {{end}}
{{end}} {{if .AreWeGrantedPrivate}}
{{.User.Username}} has granted you access to see their private photos.
{{end}} {{if not .IsSiteGallery}} {{if and (.CurrentUser.IsInnerCircle) (not .User.InnerCircle) (ne .CurrentUser.Username .User.Username) (ge .PublicPhotoCount .InnerCircleMinimumPublicPhotos)}}
Does {{.User.Username}} show a lot of nudity? Consider inviting them to join the {{PrettyCircle}}.
{{else if (and .CurrentUser.IsInnerCircle .User.IsInnerCircle)}}
{{.User.Username}} is a part of the {{PrettyCircle}}. Do they still qualify to be in the circle? Request removal if they do not.
{{end}} {{end}} {{SimplePager .Pager}} {{if eq .ViewStyle "full"}} {{range .Photos}}
{{if $Root.IsSiteGallery}}
{{if $Root.UserMap.Has .UserID}} {{$Owner := $Root.UserMap.Get .UserID}}
{{template "avatar-24x24" $Owner}}
{{if eq .Visibility "friends"}} {{else if eq .Visibility "private"}} {{else if eq .Visibility "circle"}} {{else}} {{end}}
{{else}} [deleted] {{end}}
{{else}}

{{or .Caption "Photo"}}

{{end}}
{{if HasSuffix .Filename ".mp4"}} {{else}} {{end}}
{{if .Caption}} {{.Caption}} {{else}}No caption{{end}} {{template "card-body" .}} {{if not $Root.AdminView}}
{{$Like := $Root.LikeMap.Get .ID}}
{{$Comments := $Root.CommentMap.Get .ID}} {{$Comments}} Comment{{Pluralize64 $Comments}}
{{end}}
{{if or $Root.IsOwnPhotos $Root.CurrentUser.IsAdmin}} {{template "card-footer" .}} {{end}} {{if not $Root.IsOwnPhotos}} Report {{end}}
{{end}} {{else}}
{{range .Photos}}
{{if $Root.IsSiteGallery}}
{{if $Root.UserMap.Has .UserID}} {{$Owner := $Root.UserMap.Get .UserID}}
{{template "avatar-24x24" $Owner}}
{{if eq .Visibility "friends"}} {{else if eq .Visibility "private"}} {{else if eq .Visibility "circle"}} {{else}} {{end}}
{{else}} [deleted] {{end}}
{{end}}
{{if HasSuffix .Filename ".mp4"}} {{else}} {{end}}
{{if .Caption}} {{.Caption}} {{else}}No caption{{end}} {{template "card-body" .}} {{if not $Root.AdminView}}
{{$Like := $Root.LikeMap.Get .ID}}
{{$Comments := $Root.CommentMap.Get .ID}} {{$Comments}} Comment{{Pluralize64 $Comments}}
{{end}}
{{if or $Root.IsOwnPhotos $Root.CurrentUser.IsAdmin}} {{template "card-footer" .}} {{end}} {{if not $Root.IsOwnPhotos}} Report {{end}}
{{end}}
{{end}} {{SimplePager .Pager}}
{{end}}