{{define "content"}}{{with .Data}}{{$conn := .Connected}}

Drafts

Each draft is for one channel, and is published on its own: if one channel fails, the other isn't posted twice. The source link is added when publishing.

{{if .Batches}} {{range .Batches}}

{{if .InventoryName}}{{.InventoryName}} {{.Kind}} ·{{end}} written {{ago .CreatedAt}} {{if .SourceURL}} · source{{end}}

{{range .Drafts}}

{{.ChannelName}}

{{if .Error}}

Last attempt failed: {{.Error}}

{{end}}

{{.Length}} / {{.Limit}}{{if and (eq .Channel "x") .SourceURL}} including the link{{end}}

{{end}}
{{end}} {{else}}

No drafts waiting. Write some from the Sources page.

{{end}} {{if .Published}}

Recently published

{{range .Published}} {{end}}
WhenChannelEntryPost
{{ago .PublishedAt}} {{.ChannelName}} {{.InventoryName}} {{if .PostURL}}{{truncate 80 .Content}}{{else}}{{truncate 80 .Content}}{{end}}
{{end}} {{end}}{{end}}