{{template "base/alert" .}}
{{$queryLink := QueryBuild "?" "type" $.ViewType "sort" $.SortType "state" $.State "q" $.Keyword "labels" .SelectLabels "search_mode" $.SelectedSearchMode}}
{{$queryLinkWithFilter := QueryBuild $queryLink "poster" $.FilterPosterUsername "assignee" $.FilterAssigneeUsername}}
{{template "shared/issuelist" dict "." . "listType" "dashboard"}}
{{ctx.Locale.Tr "home.issues.in_your_repos"}}
{{CountFmt .IssueStats.YourRepositoriesCount}}
{{ctx.Locale.Tr "repo.issues.filter_type.assigned_to_you"}}
{{CountFmt .IssueStats.AssignCount}}
{{ctx.Locale.Tr "repo.issues.filter_type.created_by_you"}}
{{CountFmt .IssueStats.CreateCount}}
{{if .PageIsPulls}}
{{ctx.Locale.Tr "repo.issues.filter_type.review_requested"}}
{{CountFmt .IssueStats.ReviewRequestedCount}}
{{ctx.Locale.Tr "repo.issues.filter_type.reviewed_by_you"}}
{{CountFmt .IssueStats.ReviewedCount}}
{{end}}
{{ctx.Locale.Tr "repo.issues.filter_type.mentioning_you"}}
{{CountFmt .IssueStats.MentionCount}}
{{svg "octicon-issue-opened"}}
{{ctx.Locale.PrettyNumber .IssueStats.OpenCount}} {{ctx.Locale.Tr "repo.issues.open_title"}}
{{svg "octicon-issue-closed"}}
{{ctx.Locale.PrettyNumber .IssueStats.ClosedCount}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
{{if $.Labels}}
{{template "repo/issue/filter_item_label" dict "Labels" .Labels "QueryLink" $queryLinkWithFilter "SupportArchivedLabel" true}}
{{end}}
{{/* at the moment there is no easy way to get poster candidates on this page, so only show a username input, search for what the end user enters */}}
{{if ne $.ViewType "created_by"}}
{{template "repo/issue/filter_item_user_fetch" dict
"QueryParamKey" "poster"
"QueryLink" $queryLinkWithFilter
"SelectedUsername" $.FilterPosterUsername
"TextFilterTitle" (ctx.Locale.Tr "repo.issues.filter_poster")
}}
{{end}}
{{/* at the moment there is no easy way to get assignee candidates on this page, so only show a username input, search for what the end user enters */}}
{{if ne $.ViewType "assigned"}}
{{template "repo/issue/filter_item_user_fetch" dict
"QueryParamKey" "assignee"
"QueryLink" $queryLinkWithFilter
"SelectedUsername" $.FilterAssigneeUsername
"TextFilterTitle" (ctx.Locale.Tr "repo.issues.filter_assignee")
}}
{{end}}
{{ctx.Locale.Tr "repo.issues.filter_sort"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.mostcomment"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.leastcomment"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.nearduedate"}}
{{ctx.Locale.Tr "repo.issues.filter_sort.farduedate"}}