{{define "content"}}{{with .Data}}{{$d := .}}{{$p := .P}}
{{.Kind}} for {{$p.Site}}{{with .From}}, from {{join . "; "}}{{end}}. {{template "page-status" $p}}
{{if or $p.PRURL .Preview $p.LiveNote}}Open the preview ↗ built {{ago $d.PreviewAt}} from the branch {{$p.Branch}}
{{end}} {{with $p.PRURL}}The pull request: {{.}} ↗{{if eq $p.Status "merged"}}, merged {{ago $p.MergedAt}}{{end}}
{{end}} {{with $p.Note}}{{.}}
{{end}} {{if or (eq $p.Status "merged") (eq $p.Status "removing") (eq $p.Status "removed")}}On the live site since {{ago $p.LiveAt}}: {{$p.Address}} ↗
{{end}}{{end}} {{if eq $p.Status "removed"}}{{if not $p.GoneAt.IsZero}}Off the live site since {{ago $p.GoneAt}}.
{{end}}{{end}} {{with $p.LiveNote}}{{if $d.Late}}{{.}} It's been over two hours since the merge: check that the site's deploy (the Gitea hook) ran.{{else}}{{.}}{{end}} {{if not $p.CheckedAt.IsZero}}Checked {{ago $p.CheckedAt}}.{{end}}
{{end}} {{if $p.Waiting}}{{end}}Variant {{.}}{{if $p.Source.VariantOf}} of the original page{{end}}.{{if $p.Source.VariantOf}} Its links to your site carry their own utm_content.{{end}}
The pull request that takes it off the site: {{.}} ↗
{{end}} {{with $p.Error}}{{.}}
{{end}} {{if $p.Editable}} {{else}}{{$p.Sections}}