{{define "content"}}{{$d := .Data}} {{if $d.Island}} {{template "mapa-doc-head" dict "Page" $d.Page "Edit" "/scratch/new?markdown=1"}} {{template "mapa-island" $d.Island}}
{{$d.Page.HTML}}
{{else}} {{template "back-nav" dict "Href" "/scratch" "Label" "Scratch"}} {{template "page-header" dict "Title" "New scratch page" "Sub" "Only you can open it. It is saved when you save it, and not before."}} {{template "notice" $d.Notice}}
{{template "mapa-editor" dict "Body" $d.Body "Error" $d.Error "Upload" "/scratch?upload=1"}} {{template "form-foot" dict "Submit" "Save" "CancelHref" "/scratch" "CancelLabel" "Cancel"}}
{{template "mapa-page-images" dict "Images" $d.Images "Back" "/scratch"}} {{end}} {{end}}