{{define "content"}} {{if .NeedsToken}}

Files

Uploads are recorded against the token that made them, so this page needs one to have anything to show. Log in and it lists the files you uploaded, with what is left of their lifetime.

An upload made without a token belongs to nobody and cannot be listed here. The link and the delete token handed out at the time are the only way back to it.

Log in

{{else}}

{{if .Admin}}All files{{else}}Your files{{end}}

Files
{{.Count}}{{if .Anonymous}} ({{.Anonymous}} anonymous){{end}}
{{if .Admin}}
Stored
{{.Total}}{{if .Quota}} of {{.Quota}} ({{.QuotaPct}}%){{end}}
{{if .FreeDisk}}
Free disk
{{.FreeDisk}}
{{end}} {{else}}
Uploaded as
{{.User}}
Holding
{{.Listed}}
{{end}}

{{if .Admin}}Every upload{{else}}Uploaded with your token{{end}}

{{if not .Objects}}

{{if .Admin}}Nothing stored right now.{{else}}You have not uploaded anything that is still here. Files you upload while logged in show up on this page until they expire.{{end}}

{{else}} {{if .Admin}}{{end}} {{range .Objects}} {{if $.Admin}}{{end}} {{end}}
File SizeOwnerUploaded Expires Actions
{{.Filename}} {{.ID}}{{if .Vanity}} ★{{end}} {{.Size}}{{if .Owner}}{{.Owner}}{{else}}anonymous{{end}}{{.CreatedAgo}} {{.ExpiresIn}}
{{end}}
{{if .Admin}}

Tokens

Tokens are minted, rotated and revoked with ./uncensored-send token on the server. They are deliberately not manageable from here: nothing that hands out credentials should be reachable over the network.

{{if .Tokens}} {{range .Tokens}} {{end}}
NameMax sizeMax lifetimeVanityAdmin
{{.Name}} {{.MaxSize}} {{.MaxExpiry}} {{if .Vanity}}yes{{else}}no{{end}} {{if .Admin}}yes{{else}}no{{end}}
{{end}}
{{end}} {{end}} {{end}}