{{define "title"}}Friends{{end}} {{define "content"}}
{{$Root := .}}
New feature: you can now search and sort your friends list in the Member Directory!
{{if .IsPending}} You have sent {{.Pager.Total}} friend request{{Pluralize64 .Pager.Total}} which {{Pluralize64 .Pager.Total "has" "have"}} not been approved yet. {{else}} You have {{.Pager.Total}} friend{{if .IsRequests}} request{{end}}{{Pluralize64 .Pager.Total}} (page {{.Pager.Page}} of {{.Pager.Pages}}). {{end}}
{{SimplePager .Pager}}
{{range .Friends}}
{{InputCSRF}}
{{template "avatar-64x64" .}}

{{if ne .Status "active"}} {{.NameOrUsername}} {{else}} {{.NameOrUsername}} {{end}}

{{.Username}} {{if not .Certified}} Not Certified! {{end}} {{if ne .Status "active"}}({{.Status}}){{end}} {{if .IsAdmin}} Admin {{end}}

{{if $Root.IsRequests}}
{{else}}
{{end}}
{{end}}
{{SimplePager .Pager}}
{{end}}