2019-09-15 22:54:07 +02:00
{{define "title"}}
2019-12-16 05:49:17 +01:00
'{{.Paste.Key}}{{.FileExt}}' metadata - rushlink
{{end}}
{{define "body"}}
<pre>
<a href="{{.Host}}/{{.Paste.Key}}{{.FileExt}}">{{.Host}}/{{.Paste.Key}}{{.FileExt}}</a>
---
2019-12-17 11:03:29 +01:00
{{if and (ne .Paste.State.String "deleted") .CanDeleteBool}}
with delete token: <a href="{{.Host}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}">{{.Host}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}</a>
2019-12-16 05:49:17 +01:00
{{else -}}
with delete token: <unknown>
{{end -}}
type: {{.Paste.Type}}
state: {{.Paste.State}}
{{if .Paste.TimeCreated.IsZero -}}
created: unknown
{{else -}}
created: {{.Paste.TimeCreated}}
{{end -}}
2019-12-17 11:03:29 +01:00
delete token: {{.CanDelete}}
2019-12-16 05:49:17 +01:00
2019-12-17 11:03:29 +01:00
{{if and (ne .Paste.State.String "deleted") .CanDeleteBool}}
2019-12-16 05:49:17 +01:00
```
2019-12-17 11:03:29 +01:00
curl --request "DELETE" "<a href="{{.Host}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}">{{.Host}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}"</a>
2019-12-16 05:49:17 +01:00
```
</pre>
{{end}}
2019-09-15 22:54:07 +02:00
{{end}}