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

Photos of {{.User.Username}}

{{if .IsOwnPhotos}} {{end}}
{{$Root := .}}
Found {{.Pager.Total}} photos (page {{.Pager.Page}} of {{.Pager.Pages}}).
{{template "pager" .}} {{if eq .ViewStyle "full"}} {{range .Photos}}
{{template "card-body" .}}
{{if or $Root.IsOwnPhotos $Root.CurrentUser.IsAdmin}} {{template "card-footer" .}} {{end}}
{{end}} {{else}}
{{range .Photos}}
{{if .Caption}} {{.Caption}} {{else}}No caption{{end}} {{template "card-body" .}}
{{if or $Root.IsOwnPhotos $Root.CurrentUser.IsAdmin}} {{template "card-footer" .}} {{end}}
{{end}}
{{end}} {{template "pager" .}}
{{end}}