{{template "repo/issue/navbar" .}}
{{template "repo/issue/search" .}}
{{if not .Repository.IsArchived}}
{{if .PageIsIssueList}}
{{.locale.Tr "repo.issues.new"}}
{{else}}
{{.locale.Tr "repo.pulls.new"}}
{{end}}
{{else}}
{{if not .PageIsIssueList}}
{{$.locale.Tr "action.compare_commits_general"}}
{{end}}
{{end}}
{{if $.CanWriteIssuesOrPulls}}
{{end}}
{{template "repo/issue/openclose" .}}
{{.locale.Tr "repo.issues.filter_label"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-search" 16}}
{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}
{{.locale.Tr "repo.issues.filter_label_no_select"}}
{{$previousExclusiveScope := "_no_scope"}}
{{range .Labels}}
{{$exclusiveScope := .ExclusiveScope}}
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
{{end}}
{{$previousExclusiveScope = $exclusiveScope}}
{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if .IsSelected}}{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel $.Context .}}
{{end}}
{{.locale.Tr "repo.issues.filter_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-search" 16}}
{{.locale.Tr "repo.issues.filter_milestone_all"}}
{{.locale.Tr "repo.issues.filter_milestone_none"}}
{{if .OpenMilestones}}
{{.locale.Tr "repo.issues.filter_milestone_open"}}
{{range .OpenMilestones}}
{{svg "octicon-milestone" 16 "mr-2"}}
{{.Name}}
{{end}}
{{end}}
{{if .ClosedMilestones}}
{{.locale.Tr "repo.issues.filter_milestone_closed"}}
{{range .ClosedMilestones}}
{{svg "octicon-milestone" 16 "mr-2"}}
{{.Name}}
{{end}}
{{end}}
{{.locale.Tr "repo.issues.filter_project"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-search" 16}}
{{.locale.Tr "repo.issues.filter_project_all"}}
{{.locale.Tr "repo.issues.filter_project_none"}}
{{if .OpenProjects}}
{{.locale.Tr "repo.issues.new.open_projects"}}
{{range .OpenProjects}}
{{svg .IconName 18 "gt-mr-3 gt-shrink-0"}}{{.Title}}
{{end}}
{{end}}
{{if .ClosedProjects}}
{{.locale.Tr "repo.issues.new.closed_projects"}}
{{range .ClosedProjects}}
{{svg .IconName 18 "gt-mr-3"}}{{.Title}}
{{end}}
{{end}}
{{.locale.Tr "repo.issues.filter_poster"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-search" 16}}
{{.locale.Tr "repo.issues.filter_poster_no_select"}}
{{.locale.Tr "repo.issues.filter_assignee"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{if .IsSigned}}
{{svg "octicon-search" 16}}
{{.locale.Tr "repo.issues.filter_assginee_no_select"}}
{{range .Assignees}}
{{avatar $.Context . 20}}{{template "repo/search_name" .}}
{{end}}
{{.locale.Tr "repo.issues.filter_type"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{end}}
{{.locale.Tr "repo.issues.filter_type.all_issues"}}
{{.locale.Tr "repo.issues.filter_type.assigned_to_you"}}
{{.locale.Tr "repo.issues.filter_type.created_by_you"}}
{{if .PageIsPullList}}
{{.locale.Tr "repo.issues.filter_type.review_requested"}}
{{.locale.Tr "repo.issues.filter_type.reviewed_by_you"}}
{{end}}
{{.locale.Tr "repo.issues.filter_type.mentioning_you"}}
{{.locale.Tr "repo.issues.filter_sort"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.filter_sort.latest"}}
{{.locale.Tr "repo.issues.filter_sort.oldest"}}
{{.locale.Tr "repo.issues.filter_sort.recentupdate"}}
{{.locale.Tr "repo.issues.filter_sort.leastupdate"}}
{{.locale.Tr "repo.issues.filter_sort.mostcomment"}}
{{.locale.Tr "repo.issues.filter_sort.leastcomment"}}
{{.locale.Tr "repo.issues.filter_sort.nearduedate"}}
{{.locale.Tr "repo.issues.filter_sort.farduedate"}}
{{template "repo/issue/openclose" .}}
{{if not .Repository.IsArchived}}
{{if .IsShowClosed}}
{{else}}
{{end}}
{{.locale.Tr "repo.issues.action_label"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{$previousExclusiveScope := "_no_scope"}}
{{range .Labels}}
{{$exclusiveScope := .ExclusiveScope}}
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
{{end}}
{{$previousExclusiveScope = $exclusiveScope}}
{{if SliceUtils.Contains $.SelLabelIDs .ID}}{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel $.Context .}}
{{end}}
{{.locale.Tr "repo.issues.action_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.action_milestone_no_select"}}
{{if .OpenMilestones}}
{{.locale.Tr "repo.issues.filter_milestone_open"}}
{{range .OpenMilestones}}
{{.Name}}
{{end}}
{{end}}
{{if .ClosedMilestones}}
{{.locale.Tr "repo.issues.filter_milestone_open"}}
{{range .ClosedMilestones}}
{{.Name}}
{{end}}
{{end}}
{{.locale.Tr "repo.project_board"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.new.clear_projects"}}
{{if .OpenProjects}}
{{.locale.Tr "repo.issues.new.open_projects"}}
{{range .OpenProjects}}
{{svg .IconName 18 "gt-mr-3"}}{{.Title}}
{{end}}
{{end}}
{{if .ClosedProjects}}
{{.locale.Tr "repo.issues.new.closed_projects"}}
{{range .ClosedProjects}}
{{svg .IconName 18 "gt-mr-3"}}{{.Title}}
{{end}}
{{end}}
{{.locale.Tr "repo.issues.action_assignee"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{end}}
{{.locale.Tr "repo.issues.action_assignee_no_select"}}
{{range .Assignees}}
{{avatar $.Context . 20}} {{.GetDisplayName}}
{{end}}