{{define "content"}}{{template "settings-start" .}}{{with .Data}}
The keys Supermarket reads posts with, and the sign-ins it publishes with. Keys are kept in secrets.json in Supermarket's data folder, readable only by you; saved values are never shown, and an empty field keeps what's saved.
{{.Setup}} {{.Redirect}} {{with .Note}}
{{.}}{{end}}
Who may post to each: Settings → Posting accounts.
{{end}} {{with .Expiry}} {{if .Expired}}The sign-in expired on {{.At.Local.Format "2 Jan 2006"}}: reconnect to publish again.
{{else if .Soon}}The sign-in expires {{if eq .Days 0}}today{{else if eq .Days 1}}tomorrow{{else}}in {{.Days}} days{{end}}, on {{.At.Local.Format "2 Jan 2006"}}. Reconnect now to keep posting.
{{else}}The sign-in lasts until {{.At.Local.Format "2 Jan 2006"}}; {{.Network}} doesn't let it be renewed without signing in again. Supermarket reminds you two weeks before.
{{end}} {{end}}