{{define "title"}}{{.Torrent.Name}}{{end}} {{define "contclass"}}cont-view{{end}} {{define "content"}}
{{with .Torrent}}

{{.Name}}

Uploaded by {{.UploaderName}}

Download! {{if ne .TorrentLink ""}} Torrent file {{end}} Report! {{ if HasAdmin $.User}} {{end}}

{{T "description"}}

{{.Description}}

{{T "hash"}}

{{.Hash}}


{{T "date"}}

{{.Date}}


{{T "size"}}

{{.Filesize}}


{{if ne .WebsiteLink ""}}

{{T "Link"}}

{{.WebsiteLink}}


{{end}}
{{T "seeders"}}
{{T "leechers"}}
{{T "completed"}}
{{.Seeders}}
{{.Leechers}}
{{.Completed}}

{{T "comments"}}

{{ range $index, $element := .Comments }}
{{if eq .UserID -1}} {{$index}} {{.Username}} {{else}} {{$index}} {{.Username}} {{end}}
{{ .Date.Format ( Ts "date_format" ) }} {{/* output: "2017-05-01 15:30" Went with "Year-Month-Day" because it's the most unambiguous. If you want it to be determined by where you're from, be my guest. */}}
{{.Content}}
{{end}}
{{end}}
{{/* There should be a better way to use translation on this... */}}
{{block "captcha" .}}{{end}}
{{with .Torrent}} {{end}}