{{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}}
{{end}}
{{end}}
{{template "repo/issue/openclose" .}}
{{.locale.Tr "repo.issues.filter_label"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}
{{.locale.Tr "repo.issues.filter_label_no_select"}}
{{range .Labels}}
{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if .IsSelected}}{{svg "octicon-check"}}{{end}} {{.Name | RenderEmoji}}
{{end}}
{{.locale.Tr "repo.issues.filter_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.filter_milestone_no_select"}}
{{range .Milestones}}
{{.Name}}
{{end}}
{{.locale.Tr "repo.issues.filter_assignee"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{if .IsSigned}}
{{.locale.Tr "repo.issues.filter_assginee_no_select"}}
{{range .Assignees}}
{{avatar .}} {{.GetDisplayName}}
{{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"}}
{{.locale.Tr "repo.issues.filter_type.mentioning_you"}}
{{if .PageIsPullList}}
{{.locale.Tr "repo.issues.filter_type.review_requested"}}
{{end}}
{{.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" .}}
{{/* Ten wide does not cope well and makes the columns stack.
This seems to be related to jQuery's hide/show: in fact, switching
issue-actions and issue-filters and having this ten wide will show
this one correctly, but not the other one. */}}
{{if not .Repository.IsArchived}}
{{if .IsShowClosed}}
{{.locale.Tr "repo.issues.action_open"}}
{{else}}
{{.locale.Tr "repo.issues.action_close"}}
{{end}}
{{.locale.Tr "repo.issues.action_label"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{range .Labels}}
{{if contain $.SelLabelIDs .ID}}{{svg "octicon-check"}}{{end}} {{.Name | RenderEmoji}}
{{end}}
{{.locale.Tr "repo.issues.action_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.action_milestone_no_select"}}
{{range .Milestones}}
{{.Name}}
{{end}}
{{.locale.Tr "repo.project_board"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.locale.Tr "repo.issues.new.no_projects"}}
{{range .Projects}}
{{.Title}}
{{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 .}} {{.GetDisplayName}}
{{end}}