{{define "title"}}My Dashboard{{end}} {{define "content"}}

User Dashboard

to your account

{{if or (not .CurrentUser.Certified) (not .CurrentUser.ProfilePhoto.ID)}}

Onboarding Checklist

You're almost there! Please review the following checklist items to gain full access to this website. Members are expected to have a face picture as their default Profile Pic and upload a Verification Photo to become certified as being a real person.

{{end}}
{{$Root := .}}

Notifications

{{if gt .NavUnreadNotifications 0}} {{.NavUnreadNotifications}} unread notification{{Pluralize64 .NavUnreadNotifications}}. {{else}} No unread notifications. {{end}}
{{range .Notifications}} {{$Body := $Root.NotifMap.Get .ID}} {{end}}
{{if eq .Type "like"}} {{.AboutUser.Username}} liked your {{if eq .TableName "photos"}} {{if $Body.Photo}} photo. {{else}} photo. {{end}} {{else if eq .TableName "users"}} profile page. {{else}} {{.TableName}}. {{end}} {{else if eq .Type "comment"}} {{.AboutUser.Username}} commented on your {{if eq .TableName "photos"}} photo: {{else}} {{.TableName}}: {{end}} {{else if eq .Type "friendship_approved"}} {{.AboutUser.Username}} accepted your friend request! {{else if eq .Type "cert_approved"}} Your certification photo was approved! {{else if eq .Type "cert_rejected"}} Your certification photo was rejected! {{else}} {{.AboutUser.Username}} {{.Type}} {{.TableName}} {{.TableID}} {{end}}
{{if .Message}}
{{ToMarkdown .Message}}
{{end}} {{if $Body.Photo}}
{{if eq .Type "comment"}} {{else}} {{or $Body.Photo.Caption "No caption."}} {{end}}
{{end}}
{{SincePrettyCoarse .CreatedAt}} ago
{{if $Body.PhotoID}}
{{if $Body.Photo.Caption}} {{$Body.Photo.Caption}} {{else}} No caption. {{end}}
{{end}}
{{if .Pager.HasNext}} {{end}}
{{end}}