{{.CsrfTokenHtml}} {{if .Flash}}
{{template "base/alert" .}}
{{end}}
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .SignedUser}}
{{if .PageIsComparePull}}
{{.locale.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}}
{{end}}
{{if .Fields}} {{range .Fields}} {{if eq .Type "input"}} {{template "repo/issue/fields/input" dict "Context" $.Context "item" .}} {{else if eq .Type "markdown"}} {{template "repo/issue/fields/markdown" dict "Context" $.Context "item" .}} {{else if eq .Type "textarea"}} {{template "repo/issue/fields/textarea" dict "Context" $.Context "item" .}} {{else if eq .Type "dropdown"}} {{template "repo/issue/fields/dropdown" dict "Context" $.Context "item" .}} {{else if eq .Type "checkboxes"}} {{template "repo/issue/fields/checkboxes" dict "Context" $.Context "item" .}} {{end}} {{end}} {{if .IsAttachmentEnabled}}
{{template "repo/upload" .}}
{{end}} {{else}} {{template "repo/issue/comment_tab" .}} {{end}}
{{template "repo/issue/branch_selector_field" .}} {{template "repo/issue/labels/labels_selector_field" .}} {{template "repo/issue/labels/labels_sidebar" dict "root" $}}
{{.locale.Tr "repo.issues.new.no_milestone"}}
{{if .IsProjectsEnabled}}
{{.locale.Tr "repo.issues.new.no_projects"}}
{{end}}
{{.locale.Tr "repo.issues.new.no_assignees"}} {{range .Assignees}} {{avatar $.Context . 28 "gt-mr-3 gt-vm"}}{{.GetDisplayName}} {{end}}
{{if and .PageIsComparePull (not (eq .HeadRepo.FullName .BaseCompareRepo.FullName)) .CanWriteToHeadRepo}}
{{end}}