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

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

{{if .Own}}Edit profile{{else}}Edit entry{{end}}

{{if .Own}}Posts that promote your own work: pick a product, or fetch your feeds and new pages on your websites. {{if .Sources}}Reads {{join .Sources ", "}}.{{else}}Add your blog and release feeds, and your websites, to the profile to fetch them.{{end}} {{else}}{{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}}{{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 or .Items (and .Products (not .ShowDismissed))}}
{{if .ShowDismissed}}{{end}} {{if and .Products (not .ShowDismissed)}}

Products

{{if .Items}}

News from your feeds and sites

{{end}} {{end}} {{if .Items}} {{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 if .Own}}No products or news yet: add products, feeds or websites to your profile, then fetch.{{else}}No items yet. Fetch to see what {{.Name}} has been up to.{{end}}

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