rushlink/assets/templates/txt/pasteMeta.txt.tmpl

18 lines
456 B
Cheetah
Raw Normal View History

METADATA on <{{.Host}}/{{.Paste.Key}}>:
2019-09-21 13:11:38 +02:00
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"}}"
2019-09-21 13:11:38 +02:00
```
{{end}}