{{define "content"}}{{with .Data}}{{$d := .}}{{$p := .P}}

{{or $p.Title "New page"}}

{{.Kind}} for {{$p.Site}}{{with .From}}, from {{join . "; "}}{{end}}. {{template "page-status" $p}}

{{if or $p.PRURL .Preview}}
{{with .Preview}}

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}}
{{end}} {{with $p.Error}}{{end}} {{if $p.Editable}}
{{with $p.Warnings}}
To look at:
{{end}} {{with $p.Claims}}
Confirm these are true before the pull request

They claim experience, tests or results. Tick each one that's true; edit the sections to take out any that aren't.

{{range .}}{{end}}
{{end}}

Write it again uses your notes above and keeps what you've edited as its starting point. Push and preview puts the page on its own branch ({{or $p.Branch "supermarket/site-page-…"}}) and builds a preview, without a pull request.

{{else}}
{{$p.Sections}}
{{end}}
Forgets the page here. Its branch and pull request on Gitea stay; close them there.
{{end}}{{end}}