{{$statusUnread := 1}}{{$statusRead := 2}}{{$statusPinned := 3}} {{$notificationUnreadCount := call .PageGlobalData.GetNotificationUnreadCount}} {{$pageTypeIsRead := eq $.PageType "read"}}
{{if and (not $pageTypeIsRead) $notificationUnreadCount}}
{{$.CsrfTokenHtml}}
{{end}}
{{range $one := .Notifications}}
{{if $one.Issue}} {{template "shared/issueicon" $one.Issue}} {{else}} {{svg "octicon-repo" 16 "text grey"}} {{end}}
{{$one.Repository.FullName}} {{if $one.Issue}}#{{$one.Issue.Index}}{{end}} {{if eq $one.Status $statusPinned}} {{svg "octicon-pin" 13 "text blue"}} {{end}}
{{if $one.Issue}} {{$one.Issue.Title | ctx.RenderUtils.RenderIssueSimpleTitle}} {{else}} {{$one.Repository.FullName}} {{end}}
{{if $one.Issue}} {{DateUtils.TimeSince $one.Issue.UpdatedUnix}} {{else}} {{DateUtils.TimeSince $one.UpdatedUnix}} {{end}}
{{$.CsrfTokenHtml}} {{if ne $one.Status $statusPinned}} {{end}} {{if or (eq $one.Status $statusUnread) (eq $one.Status $statusPinned)}} {{else if eq $one.Status $statusRead}} {{end}}
{{else}}
{{svg "octicon-inbox" 56 "tw-mb-4"}} {{if $pageTypeIsRead}} {{ctx.Locale.Tr "notification.no_read"}} {{else}} {{ctx.Locale.Tr "notification.no_unread"}} {{end}}
{{end}}
{{template "base/paginate" .}}