{{define "content"}}
{{template "repo_header" .}}
{{if .CurrentUser}} {{icon "plus" "size-3.5"}} {{t .Lang "issue.new"}} {{end}}
{{if .Issues}}
{{range .Issues}}
{{if .IsClosed}} {{icon "check" "size-4"}} {{else}} {{icon "alert-circle" "size-4"}} {{end}}
{{.Title}} #{{.Number}}
@{{.AuthorUsername}} ยท {{timeAgo .CreatedAt $.Lang}}
{{if gt .CommentCount 0}} {{icon "message" "size-3.5"}} {{.CommentCount}} {{end}}
{{end}}
{{else}} {{if .CurrentUser}} {{template "ui_empty_state" (dict "Icon" "alert-circle" "Title" (t .Lang "issue.empty") "ActionHref" (printf "/%s/%s/issues/new" .Repo.OwnerUsername .Repo.Name) "ActionLabel" (t .Lang "issue.new") "ActionIcon" "plus")}} {{else}} {{template "ui_empty_state" (dict "Icon" "alert-circle" "Title" (t .Lang "issue.empty"))}} {{end}} {{end}}
{{end}}