{{$notificationUnreadCount := call .NotificationUnreadCount}}
{{if and (eq .Status 1)}}
{{$.CsrfTokenHtml}}
{{end}}
{{if eq (len .Notifications) 0}}
{{svg "octicon-inbox" 56 "gt-mb-4"}} {{if eq .Status 1}} {{ctx.Locale.Tr "notification.no_unread"}} {{else}} {{ctx.Locale.Tr "notification.no_read"}} {{end}}
{{else}} {{$locale := .locale}} {{range $notification := .Notifications}}
{{if .Issue}} {{template "shared/issueicon" .Issue}} {{else}} {{svg "octicon-repo" 16 "text grey"}} {{end}}
{{.Repository.FullName}} {{if .Issue}}#{{.Issue.Index}}{{end}} {{if eq .Status 3}} {{svg "octicon-pin" 13 "text blue gt-mt-1 gt-ml-2"}} {{end}}
{{if .Issue}} {{.Issue.Title | RenderEmoji $.Context | RenderCodeBlock}} {{else}} {{.Repository.FullName}} {{end}}
{{if .Issue}} {{TimeSinceUnix .Issue.UpdatedUnix $locale}} {{else}} {{TimeSinceUnix .UpdatedUnix $locale}} {{end}}
{{if ne .Status 3}}
{{$.CsrfTokenHtml}}
{{end}} {{if or (eq .Status 1) (eq .Status 3)}}
{{$.CsrfTokenHtml}}
{{else if eq .Status 2}}
{{$.CsrfTokenHtml}}
{{end}}
{{end}} {{end}}
{{template "base/paginate" .}}