{{define "task-card"}}

{{.Task.Description}}

{{.Project.Name}}

{{copy "conversation.thread_link"}} {{copy "plan.edit"}}

{{copy .StateKey}}

{{if .Unconfined}}

{{copy "isolation.unconfined"}}

{{end}}{{template "trial-label" .Isolation}}
    {{range .Steps}}
  1. {{if .CategoryIcon}}{{icon .CategoryIcon}}{{end}}{{if .CategoryName}}{{.CategoryName}}{{else}}{{copy (printf "nav.%s" .Category)}}{{end}}{{copy (printf "plan.action.%s" .Action)}}{{.Model}} {{.Account}}{{.Person}}{{.Reason}}{{copy (printf "step.%s" .State)}}{{if .Unconfined}}{{copy "isolation.unconfined"}}{{end}}{{template "trial-label" .Isolation}}
  2. {{end}}
{{end}} {{define "task-groups"}}{{range $group := taskGroups}}

{{copy (printf "task.group.%s" $group)}}

{{range $.Tasks}}{{if eq .Group $group}}{{template "task-card" .}}{{end}}{{end}}
{{end}}{{if not .Tasks}}

{{copy "task.empty"}}

{{end}}{{end}} {{define "trial-label"}}{{if eq .Mode "owner mode"}}{{copy "isolation.owner_mode"}}{{end}}{{if .ProfileApprovals}}{{copy "isolation.approved_beyond_profile"}}{{end}}{{with .Trial}}{{copy "trial.label"}}: {{range .UnverifiedChecks}}{{copy (printf "trial.check.%s" .)}} {{end}}{{copy "trial.observed_locally"}}{{end}}{{end}} {{define "pause"}}{{$t := .Task}}{{with $t.Pause}}
{{icon .Icon}}
{{if or .Strong .Rest}}

{{with .Strong}}{{.}}{{end}}{{.Rest}}

{{end}}{{with .Next}}

{{.}}

{{end}}
{{if or .Actions .Note}}
{{with .Actions}}
{{range .}}{{if .Post}}
{{if $.Job}}{{else}}{{end}}{{if .Step}}{{end}}
{{else}}{{.Label}}{{end}}{{end}}
{{end}}{{with .Note}}{{.}}{{end}}
{{end}}
{{end}}{{end}} {{define "work-task-hold"}}{{if .Pause}}{{template "pause" (dict "Task" . "From" "task")}}{{else}}{{with .Hold}}{{if or .Budget .Resume}}

{{if .Budget}}{{copy "work.hold.raise_budget"}}{{end}}{{if .Resume}}{{copy "work.hold.resume"}}{{end}}

{{end}}{{end}}{{end}}{{with .Priority}}

{{with .Line}}{{.}}{{end}}{{if .MarkUrgent}}

{{end}}{{if .MakeNormal}}
{{end}}

{{end}}{{end}} {{define "work-task-actions"}}{{template "work-task-hold" .}}{{if .Merge}}
{{end}}{{if .Retry}}
{{end}}{{if .Recover}}
{{end}}{{if .Cancel}}
{{end}}{{end}} {{define "work-task-row"}}
  • {{.Title}}

    {{template "placement-chip" .}}

    {{$line := .StageLine}}{{with .StageTag}}{{template "conn-mark" .Provider}}{{$line}}{{else}}{{.StageLine}}{{end}}{{with .Finding}}{{if .Path}}{{.Path}}:{{.Line}}{{end}}{{end}}{{printf (copy "work.noted_by") .Creator}}

    {{if and .Pushed (not .MergedLine)}}

    {{.Pushed}}{{copy "work.open"}}

    {{end}}{{if or .ChecksLine .ReviewLine}}

    {{with .ChecksLine}}{{.}}{{end}}{{with .ReviewLine}}{{.}}{{end}}

    {{end}}{{if .MergedLine}}

    {{.MergedLine}}{{copy "work.open"}}

    {{end}}{{if .PreviewURL}}

    {{.PreviewLine}}

    {{end}}
  • {{end}}