{{define "download.html"}}{{template "base" .}}{{end}} {{define "content"}}

{{if .Data.Locked}}Protected box{{else}}Box: {{.Data.Box.ID}} ({{len .Data.Files}} file{{if ne (len .Data.Files) 1}}s{{end}}){{end}}

{{if .Data.Locked}}

Bucket id: {{.Data.Box.ID}}

{{end}} {{if .Data.Locked}}
{{if .Data.Obfuscated}}

File names, counts, and previews are hidden until the password is entered.

{{end}} {{end}} {{if .Data.Files}} {{$single := eq (len .Data.Files) 1}}
Expires {{.Data.ExpiresLabel}} {{if .Data.MaxDownloads}}{{.Data.DownloadCount}} / {{.Data.MaxDownloads}} downloads{{end}}
{{if not .Data.Locked}} {{if $single}} {{$first := index .Data.Files 0}} Download {{else}} Download zip {{end}} {{end}}
{{range .Data.Files}} {{end}}
{{if not .Data.Locked}} {{end}} {{else if not .Data.Locked}}

{{.Data.ExpiresLabel}}

{{end}}
{{end}}