{{define "content"}}{{with .Data}}

{{.Entry.Name}} {{.Entry.Relationship}}

Edit entry

{{if .Sources}}Reads {{join .Sources ", "}}.{{else}}This entry has no sources yet: add an X handle, hashtags, a YouTube channel or RSS feeds to it.{{end}} Last fetched {{ago .LastChecked}}; the next fetch looks for posts since {{.Since.Local.Format "2 Jan 15:04"}}.

{{if .Fetched}}

{{if .NewItems}}{{.NewItems}} new item{{if ne .NewItems 1}}s{{end}}.{{else}}Nothing new.{{end}}

{{if .Errors}}

Some sources failed; they'll be read from the same point next time:

{{end}} {{if .Skipped}}

Skipped, for lack of credentials (add them): {{join .Skipped "; "}}.

{{end}}
{{end}} {{if .Items}}
{{if .ShowDismissed}}{{end}} {{if .ShowDismissed}}
{{else}}

Write drafts from the selected items

{{if not .ProfileSet}}

Fill in the company profile first: drafts are written in its voice.

{{end}}
Channels {{range .Channels}} {{/* Reddit is never pre-checked: each post there is a deliberate choice. */}} {{end}}
Posts
{{end}}
{{else}}

{{if .ShowDismissed}}Nothing dismissed.{{else}}No items yet. Fetch to see what {{.Entry.Name}} has been up to.{{end}}

{{end}} {{end}}{{end}}