{{define "title"}}{{copy "nav.projects"}}{{end}} {{define "content"}}

{{copy "nav.projects"}}

{{copy "work.projects_lede"}}

{{with .Thin}}{{$l := .List}} {{range $l.Receipts}}
{{icon "star"}}{{.Text}}
{{end}} {{if or $l.Filtering $l.Key}}
{{if $l.Filtering}}
{{end}}{{with $l.Key}}{{end}}
{{end}}

{{copy "projects.yours"}}

{{with $l.Starred}}

{{copy "work.projects.starred"}} {{len .}}

    {{range .}}{{template "work-project-row" .}}{{end}}
{{end}} {{with $l.Active}}
{{if or $l.Starred $l.Quiet}}

{{copy "work.projects.active"}} {{len .}}

{{end}}
    {{range .}}{{template "work-project-row" .}}{{end}}
{{end}} {{with $l.Quiet}}
{{printf (copy "work.projects.quiet") (len .)}}{{icon "chevron-down"}}{{copy "work.projects.quiet_hint"}}
    {{range .}}{{template "work-project-row" .}}{{end}}
{{end}} {{if not (or $l.Starred $l.Active $l.Quiet)}}

{{printf (copy "work.projects.filter_none") $l.Filter}}

{{end}} {{if not .Projects}}

{{copy "work.projects_empty"}}

{{end}} {{with .CanAdd}}

{{copy "projects.can_add"}}

{{copy "projects.amadan"}}

    {{range .}}
  1. {{.Title}}

    {{icon "git"}} {{copy "projects.amadan"}} · {{.Name}}

    {{with .Description}}

    {{.}}

    {{end}}
    {{if $.Owner}}
    {{end}}
  2. {{end}}
{{end}} {{end}}
{{end}} {{define "work-project-row"}}
  • {{template "mono-l" .Mono}}
    {{.Title}}{{template "star-toggle" (dict "P" . "From" "projects")}}
    {{with .Short}}

    {{.}}

    {{end}}

    {{icon "git"}} {{copy "projects.amadan"}} · {{.Name}} · {{template "project-facts" .}}{{if .People}}{{range .People}}{{template "av" .}}{{end}}{{end}}

    {{if .Last}}{{.Last}}{{end}}{{if .Open}}{{range .Spread}}{{end}}{{if eq .Tasks 1}}{{copy "work.project.one_task"}}{{else}}{{printf (copy "work.project.tasks") .Tasks}}{{end}}: {{.Words}}{{else}}{{copy "work.project.no_open"}}{{end}}
  • {{end}}