{{define "content" -}} {{template "repohead" .}} {{- if .Pulls}}

{{template "icon" "pull"}}{{len .Pulls}} pull request{{if ne (len .Pulls) 1}}s{{end}}

    {{- range .Pulls}}{{$state := .State}}{{if .Merged}}{{$state = "merged"}}{{end}}
  1. {{template "icon" "pull"}}
    {{.Title}} #{{.Number}} opened {{day .CreatedAt}} by {{.User.Login}}{{with .Comments}} ยท {{.}} comment{{if ne . 1}}s{{end}}{{end}}
    {{$state}}
    {{if .Body}}{{.Body}}{{else}}

    No description.

    {{end}}
    {{- template "thread" .}}
  2. {{- end}}
{{- else}} {{template "emptystate" (dict "Icon" "pull" "Title" "No pull requests." "Hint" "This mirror is read-only. Clone the repository to work on it.")}} {{- end}} {{- end}}