0bffde1dc1
Fixes #15
18 lines
456 B
Cheetah
18 lines
456 B
Cheetah
METADATA on <{{.Host}}/{{.Paste.Key}}>:
|
|
|
|
TYPE: {{.Paste.Type}}
|
|
STATE: {{.Paste.State}}
|
|
{{if .Paste.TimeCreated.IsZero -}}
|
|
CREATED: undefined
|
|
{{else -}}
|
|
CREATED: {{.Paste.TimeCreated}}
|
|
{{end -}}
|
|
DELETE TOKEN: {{.CanDelete.String}}
|
|
|
|
{{if and (ne .Paste.State.String "deleted") .CanDelete.Bool}}
|
|
```
|
|
# To delete this {{.Paste.Type}}, execute:
|
|
curl --request "DELETE" "{{.Host}}/{{.Paste.Key}}?deleteToken={{.Request.URL.Query.Get "deleteToken"}}"
|
|
```
|
|
{{end}}
|