{{.i18n.Tr "notification.notifications"}}

{{if eq (len .Notifications) 0}} {{if eq .Status 1}} {{.i18n.Tr "notification.no_unread"}} {{else}} {{.i18n.Tr "notification.no_read"}} {{end}} {{else}} {{range $notification := .Notifications}} {{$issue := .Issue}} {{$repo := .Repository}} {{$repoOwner := $repo.MustOwner}} {{end}}
{{if eq .Status 3}} {{svg "octicon-pin" 16}} {{else if $issue.IsPull}} {{if $issue.IsClosed}} {{if $issue.GetPullRequest.HasMerged}} {{svg "octicon-git-merge" 16}} {{else}} {{svg "octicon-git-pull-request" 16}} {{end}} {{else}} {{svg "octicon-git-pull-request" 16}} {{end}} {{else}} {{if $issue.IsClosed}} {{svg "octicon-issue-closed" 16}} {{else}} {{svg "octicon-issue-opened" 16}} {{end}} {{end}} #{{$issue.Index}} - {{$issue.Title}} {{$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" .}}