{{template "repo/issue/branch_selector_field" .}} {{if .Issue.IsPull}}
{{.locale.Tr "repo.issues.new.no_reviewers"}}
{{range .PullReviewers}}
{{if .User}} {{avatar .User 28 "mr-3"}} {{.User.GetDisplayName}} {{else if .Team}} {{svg "octicon-people" 16 "teamavatar"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}} {{end}} {{if .CanChange}} {{if .Checked}} {{svg "octicon-trash"}} {{else}} {{svg "octicon-sync"}} {{end}} {{end}} {{svg (printf "octicon-%s" .Review.Type.Icon)}}
{{end}} {{range .OriginalReviews}} {{end}}
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .HasMerged) (not .Issue.IsClosed) (not .IsPullWorkInProgress)}} {{end}}
{{end}} {{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}}
{{.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 .Issue.Assignees}} {{end}}
{{if .Participants}} {{.locale.Tr "repo.issues.num_participants" .NumParticipants}}
{{range .Participants}} {{avatar . 28 "my-1 mr-2"}} {{end}}
{{end}} {{if and $.IssueWatch (not .Repository.IsArchived)}}
{{.locale.Tr "notification.notifications"}}
{{$.CsrfTokenHtml}}
{{end}} {{if .Repository.IsTimetrackerEnabled $.Context}} {{if and .CanUseTimetracker (not .Repository.IsArchived)}}
{{.locale.Tr "repo.issues.tracker"}}
{{$.CsrfTokenHtml}}
{{$.CsrfTokenHtml}}
{{if $.IsStopwatchRunning}} {{else}} {{if .HasUserStopwatch}}
{{.locale.Tr "repo.issues.tracking_already_started" (.OtherStopwatchURL|Escape) | Safe}}
{{end}} {{end}}
{{end}} {{if gt (len .WorkingUsers) 0}}
{{.locale.Tr "repo.issues.time_spent_from_all_authors" ($.Issue.TotalTrackedTime | Sec2Time) | Safe}}
{{range $user, $trackedtime := .WorkingUsers}}
{{avatar $user}}
{{template "shared/user/authorlink" $user}}
{{$trackedtime}}
{{end}}
{{end}} {{end}}
{{.locale.Tr "repo.issues.due_date"}}
{{if ne .Issue.DeadlineUnix 0}}

{{svg "octicon-calendar" 16 "mr-3"}}
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} {{svg "octicon-pencil" 16 "mr-2"}} {{svg "octicon-trash"}} {{end}}

{{else}}

{{.locale.Tr "repo.issues.due_date_not_set"}}

{{end}} {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} {{end}}
{{if .Repository.IsDependenciesEnabled $.Context}}
{{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} {{.locale.Tr "repo.issues.dependency.title"}}

{{if .Issue.IsPull}} {{.locale.Tr "repo.issues.dependency.pr_no_dependencies"}} {{else}} {{.locale.Tr "repo.issues.dependency.issue_no_dependencies"}} {{end}}

{{end}} {{if .BlockingDependencies}} {{.locale.Tr "repo.issues.dependency.blocks_short"}}
{{range .BlockingDependencies}}
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji}}
{{.Repository.OwnerName}}/{{.Repository.Name}}
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} {{svg "octicon-trash" 16}} {{end}}
{{end}}
{{end}} {{if .BlockedByDependencies}} {{.locale.Tr "repo.issues.dependency.blocked_by_short"}}
{{range .BlockedByDependencies}}
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji}}
{{.Repository.OwnerName}}/{{.Repository.Name}}
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} {{svg "octicon-trash" 16}} {{end}}
{{end}}
{{end}} {{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
{{$.CsrfTokenHtml}}
{{end}}
{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}} {{end}} {{end}}
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}} {{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}
{{if and .IsRepoAdmin (not .Repository.IsArchived)}}
{{end}} {{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed)}} {{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}}
{{end}} {{end}}