{{template "repo/issue/navbar" .}}
{{template "repo/issue/search" .}}
{{if not .Repository.IsArchived}}
{{if .PageIsIssueList}}
{{.i18n.Tr "repo.issues.new"}}
{{else}}
{{.i18n.Tr "repo.pulls.new"}}
{{end}}
{{else}}
{{if not .PageIsIssueList}}
{{end}}
{{end}}
{{template "repo/issue/openclose" .}}
{{.i18n.Tr "repo.issues.filter_label"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.i18n.Tr "repo.issues.filter_label_exclude" | Safe}}
{{.i18n.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}}
{{.i18n.Tr "repo.issues.filter_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.i18n.Tr "repo.issues.filter_milestone_no_select"}}
{{range .Milestones}}
{{.Name}}
{{end}}
{{.i18n.Tr "repo.issues.filter_assignee"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{if .IsSigned}}
{{.i18n.Tr "repo.issues.filter_assginee_no_select"}}
{{range .Assignees}}
{{avatar .}} {{.GetDisplayName}}
{{end}}
{{.i18n.Tr "repo.issues.filter_type"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{end}}
{{.i18n.Tr "repo.issues.filter_sort"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.i18n.Tr "repo.issues.filter_sort.latest"}}
{{.i18n.Tr "repo.issues.filter_sort.oldest"}}
{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}
{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}
{{.i18n.Tr "repo.issues.filter_sort.mostcomment"}}
{{.i18n.Tr "repo.issues.filter_sort.leastcomment"}}
{{.i18n.Tr "repo.issues.filter_sort.nearduedate"}}
{{.i18n.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}}
{{.i18n.Tr "repo.issues.action_open"}}
{{else}}
{{.i18n.Tr "repo.issues.action_close"}}
{{end}}
{{.i18n.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}}
{{.i18n.Tr "repo.issues.action_milestone"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.i18n.Tr "repo.issues.action_milestone_no_select"}}
{{range .Milestones}}
{{.Name}}
{{end}}
{{.i18n.Tr "repo.project_board"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{.i18n.Tr "repo.issues.new.no_projects"}}
{{range .Projects}}
{{.Title}}
{{end}}
{{.i18n.Tr "repo.issues.action_assignee"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{end}}
{{.i18n.Tr "repo.issues.action_assignee_no_select"}}
{{range .Assignees}}
{{avatar .}} {{.GetDisplayName}}
{{end}}