{{template "base/head" .}}

{{.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 := $notification.Issue}} {{$repo := $notification.Repository}} {{$repoOwner := $repo.MustOwner}} {{end}}
{{if eq $notification.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 $notification.Status 3}}
{{$.CsrfTokenHtml}}
{{end}}
{{if or (eq $notification.Status 1) (eq $notification.Status 3)}}
{{$.CsrfTokenHtml}}
{{else if eq $notification.Status 2}}
{{$.CsrfTokenHtml}}
{{end}}
{{end}}
{{template "base/paginate" .}}
{{template "base/footer" .}}