{{define "content"}}
{{template "repo_header" .}}
{{if .CurrentUser}} {{icon "plus" "size-3.5"}} {{t .Lang "pulls.new"}} {{end}}
{{if .Pulls}}
{{range .Pulls}}
{{if eq .Status "merged"}} {{icon "git-merge" "size-4"}} {{else if eq .Status "closed"}} {{icon "close" "size-4"}} {{else}} {{icon "git-pull-request" "size-4"}} {{end}}
{{.Title}} #{{.Number}} {{.HeadBranch}} → {{.BaseBranch}}
@{{.AuthorUsername}} · {{timeAgo .CreatedAt $.Lang}} {{if eq .Status "merged"}} · {{t $.Lang "pulls.merged"}} {{end}}
{{if gt .CommentCount 0}} {{icon "message" "size-3.5"}} {{.CommentCount}} {{end}}
{{end}}
{{else}} {{if .CurrentUser}} {{template "ui_empty_state" (dict "Icon" "git-pull-request" "Title" (t .Lang "pulls.empty") "ActionHref" (printf "/%s/%s/pulls/new" .Repo.OwnerUsername .Repo.Name) "ActionLabel" (t .Lang "pulls.new") "ActionIcon" "plus")}} {{else}} {{template "ui_empty_state" (dict "Icon" "git-pull-request" "Title" (t .Lang "pulls.empty"))}} {{end}} {{end}}
{{end}}