{{.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}} {{$repoOwner := $repo.MustOwner}} {{end}}
{{if eq .Status 3}} {{svg "octicon-pin"}} {{else if not $issue}} {{svg "octicon-repo"}} {{else if $issue.IsPull}} {{if $issue.IsClosed}} {{if $issue.GetPullRequest.HasMerged}} {{svg "octicon-git-merge"}} {{else}} {{svg "octicon-git-pull-request"}} {{end}} {{else}} {{svg "octicon-git-pull-request"}} {{end}} {{else}} {{if $issue.IsClosed}} {{svg "octicon-issue-closed"}} {{else}} {{svg "octicon-issue-opened"}} {{end}} {{end}} {{if $issue}} #{{$issue.Index}} - {{$issue.Title}} {{else}} {{$repo.FullName}} {{end}} {{$repoOwner.Name}}/{{$repo.Name}} {{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" .}}