{{define "content"}}{{with .Data}}{{$conn := .Connected}}{{$accounts := .Accounts}}{{$chosen := .Chosen}}{{$now := .Now}}{{$zone := .Zone}}{{$reddit := .Reddit}}

Posts

Everything waiting for your approval. Nothing is published until you say so: publish a draft now, or schedule it. Reddit posts you post yourself. {{if .Tagged}}Links to your own sites get UTM tags when published.{{end}}

{{template "reminders" .Reminders}} {{if .Sections}} {{range .Sections}}

{{.Module}}

{{range .Batches}}

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

{{range .Drafts}}

{{.Where}}{{with by .WrittenBy}} {{.}}{{end}}

{{if .Error}}

{{.Error}}

{{end}} {{$rv := index $reddit .ID}} {{if $rv}} {{if $rv.Warnings}}
    {{range $rv.Warnings}}
  • {{.}}
  • {{end}}
{{end}}
r/{{.Target}}'s rules{{with $rv.Info}} · pasted {{ago .SavedAt}}{{else}} · not pasted yet{{end}}

Supermarket can't read them from Reddit. Open r/{{.Target}}'s rules ↗, copy them, and paste them here: the next drafts for r/{{.Target}} follow them, and the warnings above use them. To use them for this draft, write it again after saving.

{{end}}
{{if eq .Channel "reddit"}} {{end}} {{if eq .Channel "reddit"}}{{if .SourceURL}}

The source link is added at the end as “Source: …”.

{{end}}{{end}} {{if eq .Channel "reddit"}}

{{.Length}} / {{.Limit}}

Post it yourself. Open in Reddit saves your edits and opens r/{{.Target}}'s submit page in a new tab with the title and text filled in{{if .SourceURL}} (links to your sites tagged){{end}}. If a box comes up empty, copy it from here. Check it there and post.

{{else}} {{$d := .}}{{$accts := index $accounts .Channel}} {{if $accts}}
Post as{{if gt (len $accts) 1}} (choose several to post a copy to each){{end}} {{range $accts}}{{end}}
{{end}}

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

{{if not (index $conn .Channel)}}

{{.ChannelName}} isn't connected: sign in before it's due.

{{end}} {{end}}
{{if eq .Channel "reddit"}}
{{end}}
{{end}}
{{end}} {{end}} {{else}}

Nothing waiting. Write posts from Content; scheduled ones are under Content → Scheduled.

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