{{define "title"}}Friends{{end}} {{define "content"}}
{{$Root := .}}
{{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}}
{{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}}
{{end}}