{{define "title"}}People{{end}} {{define "content"}}
{{$Root := .}}
Found {{FormatNumberCommas .Pager.Total}} user{{Pluralize64 .Pager.Total}} (page {{.Pager.Page}} of {{.Pager.Pages}}).
{{if .FriendSearch}}
Currently searching within your Friends list.
{{else if not (eq .Sort "distance")}}
New feature: you can now see Who's Nearby! {{if not .MyLocation.Source}} You will need to set your location first. {{else}} See who's nearby now! {{end}}
{{else}}

Showing you Who's Nearby.

{{if eq .MyLocation.Source "geoip"}} You had set your location to update automatically by your IP address (currently {{.GeoIPInsights.Short}}). Change your location settings? {{else if eq .MyLocation.Source "gps"}} You once set your location via your device's GPS coordinates. Refresh to your current location now? {{else if eq .MyLocation.Source "pin"}} You had set your location by dropping a pin on a map. Update your location? {{else if eq .MyLocation.Source ""}} You will need to set your location first before we can sort people by distance from you. {{end}}

{{end}}
Reset
{{SimplePager .Pager}}
{{range .Users}}
{{template "avatar-64x64" .}} {{if $Root.FriendMap.Get .ID}}
Friends
{{end}}

{{if ne .Status "active"}} {{.NameOrUsername}} {{else}} {{.NameOrUsername}} {{end}} {{if and $Root.CurrentUser.IsInnerCircle .InnerCircle}} {{end}} {{if eq .Visibility "private"}} {{end}}

{{.Username}} {{if not .Certified}} Not Certified! {{else if $Root.ShyMap.Get .ID}} Shy Account {{end}} {{if ne .Status "active"}}({{.Status}}){{end}} {{if .IsAdmin}} Admin {{end}} {{$Root.PhotoCountMap.Get .ID}}

{{if .GetProfileField "city"}}

{{.GetProfileField "city"}}

{{end}}

{{if or (ne .GetDisplayAge "n/a")}} {{.GetDisplayAge}} {{end}} {{if .GetProfileField "gender"}} {{.GetProfileField "gender"}} {{end}} {{if .GetProfileField "pronouns"}} {{.GetProfileField "pronouns"}} {{end}} {{if .GetProfileField "orientation"}} {{.GetProfileField "orientation"}} {{end}} {{if $Root.UserOnChatMap.Get .Username}}

Currently on chat!
{{end}} {{if eq $Root.Sort "last_login_at desc"}}
Last logged in: {{SincePrettyCoarse .LastLoginAt}} ago
{{end}} {{if eq $Root.Sort "created_at desc"}}
Member since: {{SincePrettyCoarse .CreatedAt}} ago
{{end}} {{if eq $Root.Sort "distance"}}
{{$Root.DistanceMap.Get .ID}} away
{{end}}

{{end}}
{{SimplePager .Pager}}
{{end}}