{{define "title"}}{{.Title}}{{end}} {{define "content"}}

{{.Data.Calendar.Name}}

Subscription links

{{if .Data.NewToken}} {{/* Shown once, and the page says so, because only the hash is stored — coming back for it later is not possible and somebody should learn that now rather than then. */}} {{template "callout" dict "Tone" "positive" "Title" "Copy this now — it is not shown again" "Body" (feedURL .Data.Origin .Data.NewToken)}} {{end}} {{/* Both costs, stated before the button rather than in a help page. A subscription link is genuinely useful and genuinely has these two consequences, and somebody deciding should see them. */}} {{template "callout" dict "Tone" "warning" "Title" "What a subscription link does" "Body" "Anyone with the link can read this calendar — there is no sign-in on it, because Google and Apple will not sign in. The events they read are then stored in that account, outside this instance. Subscribers also poll constantly (Apple, roughly every fifteen minutes, forever), and each poll wakes this instance."}} {{if .Data.Feeds}}
{{range .Data.Feeds}}
Created {{.CreatedAt.Format "2 January 2006"}} Polled {{.PollCount}} times{{if .LastPolledAt}}, last {{.LastPolledAt.Format "2 Jan 15:04"}}{{else}} — never yet{{end}}
{{end}}
{{else}} {{template "empty-state" dict "Title" "No subscription links" "Body" "A link lets another calendar app read this one. Nothing is shared until you make one."}} {{end}}
{{end}}