{{$root := ctx.RootData -}} {{$listType := .listType -}}
{{$approvalCounts := $root.ApprovalCounts}} {{range $issue := $root.Issues}}
{{/* using some tw helpers is the only way to align the checkbox */}}
{{if $root.CanWriteIssuesOrPulls}} {{end}} {{template "shared/issueicon" $issue}}
{{$issue.Title | ctx.RenderUtils.RenderIssueSimpleTitle}} {{if $issue.IsPull}} {{if (index $root.CommitStatuses $issue.PullRequest.ID)}} {{/* make the "flex" children align with parent "inline" */}} {{template "repo/commit_statuses" dict "Status" (index $root.CommitLastStatus $issue.PullRequest.ID) "Statuses" (index $root.CommitStatuses $issue.PullRequest.ID)}} {{end}} {{end}} {{- range $label := $issue.Labels -}} {{ctx.RenderUtils.RenderLabel $label}} {{- end -}}
{{if $issue.TotalTrackedTime}}
{{svg "octicon-clock" 16}} {{$issue.TotalTrackedTime | Sec2Hour}}
{{end}}
{{if eq $listType "dashboard"}} {{$issue.Repo.FullName}}#{{$issue.Index}} {{else}} #{{$issue.Index}} {{end}}
{{$timeStr := DateUtils.TimeSince $issue.GetLastEventTimestamp}} {{if $issue.OriginalAuthor}} {{ctx.Locale.Tr $issue.GetLastEventLabelFake $timeStr $issue.OriginalAuthor}} {{else if gt $issue.Poster.ID 0}} {{ctx.Locale.Tr $issue.GetLastEventLabel $timeStr $issue.Poster.HomeLink $issue.Poster.GetDisplayName}} {{else}} {{ctx.Locale.Tr $issue.GetLastEventLabelFake $timeStr $issue.Poster.GetDisplayName}} {{end}}
{{if $issue.IsPull}} {{end}} {{if and $issue.Milestone (ne $listType "milestone")}} {{svg "octicon-milestone" 14}} {{$issue.Milestone.Name}} {{end}} {{range $project := $issue.Projects}} {{svg $project.IconName 14}} {{$project.Title}} {{end}} {{if $issue.Ref}}{{/* TODO: ISSUE-SIDEBAR-REF-SELECTOR: see "repo/issue/branch_selector_field.tmpl" */}} {{svg "octicon-git-branch" 14}} {{index $root.IssueRefEndNames $issue.ID}} {{end}} {{$tasks := $issue.GetTasks}} {{if gt $tasks 0}} {{$tasksDone := $issue.GetTasksDone}} {{svg "octicon-checklist" 14}}{{$tasksDone}} / {{$tasks}} {{end}} {{if ne $issue.DeadlineUnix 0}} {{svg "octicon-calendar" 14}} {{DateUtils.AbsoluteShort $issue.DeadlineUnix}} {{end}} {{if $issue.IsPull}} {{$approveOfficial := call $approvalCounts $issue.ID "approve"}} {{$rejectOfficial := call $approvalCounts $issue.ID "reject"}} {{$waitingOfficial := call $approvalCounts $issue.ID "waiting"}} {{if gt $approveOfficial 0}} {{svg "octicon-check" 14}} {{ctx.Locale.TrN $approveOfficial "repo.pulls.approve_count_1" "repo.pulls.approve_count_n" $approveOfficial}} {{end}} {{if gt $rejectOfficial 0}} {{svg "octicon-diff" 14}} {{ctx.Locale.TrN $rejectOfficial "repo.pulls.reject_count_1" "repo.pulls.reject_count_n" $rejectOfficial}} {{end}} {{if gt $waitingOfficial 0}} {{svg "octicon-eye" 14}} {{ctx.Locale.TrN $waitingOfficial "repo.pulls.waiting_count_1" "repo.pulls.waiting_count_n" $waitingOfficial}} {{end}} {{if and (not $issue.PullRequest.HasMerged) $issue.PullRequest.ConflictedFiles}} {{svg "octicon-x" 14}} {{ctx.Locale.TrN (len $issue.PullRequest.ConflictedFiles) "repo.pulls.num_conflicting_files_1" "repo.pulls.num_conflicting_files_n" (len $issue.PullRequest.ConflictedFiles)}} {{end}} {{end}}
{{if or $issue.Assignees $issue.NumComments}}
{{if $issue.Assignees}}
{{range $assignee := $issue.Assignees}} {{ctx.AvatarUtils.Avatar $assignee 20}} {{end}}
{{end}} {{if $issue.NumComments}} {{end}}
{{end}}
{{else}}

{{ctx.Locale.Tr "repo.issues.filter_no_results"}}

{{ctx.Locale.Tr "repo.issues.filter_no_results_placeholder"}}

{{end}} {{if $root.IssueIndexerUnavailable}}

{{ctx.Locale.Tr "search.keyword_search_unavailable"}}

{{end}}
{{template "base/paginate" $root}}