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

{{.Name}}

{{ T "uploaded_by" }} {{.UploaderName}}

{{ T "download_btn" }} {{if ne .TorrentLink ""}} {{ T "torrent_file" }} {{end}} {{ T "report_btn" }} {{ 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}}

{{ if gt (len .FileList) 0 }}

{{T "files"}}

{{ range .FileList }} {{ end }}
{{T "filename"}} {{T "size"}}
{{.Path}} {{.Filesize}}
{{ end }}

{{T "comments"}}


    {{ range $index, $element := .Comments }}
  • {{/* The following line is wrong. Should be using the MD5 User hash but i don't knwo how to access it. */}} {{/* Changing Gravatar for something else, so it can stay like this. */}}
    {{if eq .UserID -1}} #{{$index}} by {{.Username}} {{else}} #{{$index}} by {{.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}}
{{end}}