{{define "content" -}}

Ready to work

{{.Data.Total}} ready {{if eq .Data.Total 1}}issue{{else}}issues{{end}} across {{len .Data.Groups}} {{if eq (len .Data.Groups) 1}}database{{else}}databases{{end}} — open, unblocked, and nobody is on {{if eq .Data.Total 1}}it{{else}}them{{end}} yet.

{{/* The database selection is not a form control (narrowing to one is a link on its header), but this form is a GET: without carrying it, searching from one database would answer across all of them. */}} {{range .Data.Filter.Databases}}{{end}} {{if .Data.Filter.Active}}Clear{{end}}
{{if .Data.Filter.Databases}}

Narrowed to {{len .Data.Filter.Databases}} of the databases you can browse. Every database

{{end}} {{if .Data.Capped}} {{/* A silent cap reads as "that is everything". */}}

More than {{.Data.Max}} databases matched; only the first {{.Data.Max}} were read. Narrow with the database links below to see the rest.

{{end}} {{if .Data.Failed}} {{/* What went wrong is in the log, with the error. The reader gets the count, because a page that hid the gap entirely would understate itself. */}}

{{len .Data.Failed}} {{if eq (len .Data.Failed) 1}}database{{else}}databases{{end}} could not be read and {{if eq (len .Data.Failed) 1}}is{{else}}are{{end}} not counted here.

{{end}} {{range .Data.Groups}}
~{{.Database.Slug}} {{if ne (len $.Data.Filter.Databases) 1}}only this one{{end}} {{len .Cards}} ready
{{template "beadsHead" (dict "Repo" .Database "Ref" .Ref "Head" .Head)}}
{{else}} {{if .Data.Filter.Active}}

Nothing ready matches these filters. Clear them.

{{else}}

Nothing is ready to work in the databases you can browse.

{{end}} {{end}}
{{- end}}