{{.locale.Tr "notification.notifications"}}

{{if eq (len .Notifications) 0}} {{if eq .Status 1}} {{.locale.Tr "notification.no_unread"}} {{else}} {{.locale.Tr "notification.no_read"}} {{end}} {{else}} {{range $notification := .Notifications}} {{$issue := .Issue}} {{$repo := .Repository}} {{end}}
{{if eq .Status 3}} {{svg "octicon-pin" 16 "text blue"}} {{else if not $issue}} {{svg "octicon-repo" 16 "text grey"}} {{else if $issue.IsPull}} {{if $issue.IsClosed}} {{if $issue.GetPullRequest.HasMerged}} {{svg "octicon-git-merge" 16 "text purple"}} {{else}} {{svg "octicon-git-pull-request" 16 "text red"}} {{end}} {{else}} {{svg "octicon-git-pull-request" 16 "text green"}} {{end}} {{else}} {{if $issue.IsClosed}} {{svg "octicon-issue-closed" 16 "text red"}} {{else}} {{svg "octicon-issue-opened" 16 "text green"}} {{end}} {{end}} {{if $issue}} #{{$issue.Index}} - {{$issue.Title}} {{else}} {{$repo.FullName}} {{end}} {{$repo.FullName}} {{if ne .Status 3}}
{{$.CsrfTokenHtml}}
{{end}}
{{if or (eq .Status 1) (eq .Status 3)}}
{{$.CsrfTokenHtml}}
{{else if eq .Status 2}}
{{$.CsrfTokenHtml}}
{{end}}
{{end}}
{{template "base/paginate" .}}