{{define "title"}}{{.Torrent.Name}}{{end}} {{define "contclass"}}cont-view {{if eq .Torrent.Status 2}}remake{{end}} {{if eq .Torrent.Status 3}}trusted{{end}} {{if eq .Torrent.Status 4}}aplus{{end}}{{end}} {{define "content"}}
{{with .Torrent}}
{{ range (index $.FormErrors "errors")}}
× {{ . }}
{{end}} {{ range (index $.Infos "infos")}}
× {{ . }}
{{end}}

{{.Name}}

{{ if Sukebei }} {{ call $.T (Category_Sukebei .Category .SubCategory) }} {{ else }} {{ call $.T (Category_Nyaa .Category .SubCategory) }} {{ end }}

{{ call $.T "uploaded_by" }} {{.UploaderName}}

{{if ne .OldUploader ""}} ({{.OldUploader}}) {{end}}
{{ call $.T "download_btn" }} {{if ne .TorrentLink ""}} {{ call $.T "torrent_file" }} {{end}} {{ call $.T "report_btn" }} {{ if HasAdmin $.User}} {{end}}

{{call $.T "description"}}

{{.Description}}

{{call $.T "hash"}}

{{.Hash}}


{{call $.T "date"}}

{{.Date}}


{{call $.T "size"}}

{{.Filesize}}


{{if ne .WebsiteLink ""}}

{{call $.T "link"}}

{{.WebsiteLink}}


{{end}}
{{call $.T "seeders"}}
{{call $.T "leechers"}}
{{call $.T "completed"}}
{{if .LastScrape.IsZero}}
{{call $.T "unknown"}}
{{else}}
{{.Seeders}}
{{.Leechers}}
{{.Completed}}
{{end}}
{{if not .LastScrape.IsZero}} {{call $.T "last_scraped"}}{{ formatDateRFC .LastScrape }} {{end}}

{{ if gt (len .FileList) 0 }}
{{ range .FileList }} {{ end }}
{{call $.T "filename"}} {{call $.T "size"}}
{{.Path}} {{.Filesize}}
{{ end }}

{{call $.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. */}}
    {{ formatDateRFC .Date }} {{/* JS will format the date as always */}}
    {{if eq .UserID -1}} #{{inc $index}} by {{.Username}} {{else}} #{{inc $index}} by {{.Username}} {{end}}
    {{.Content}}
  • {{end}}
{{end}}
{{/* There should be a better way to use translation on this... */}}
{{block "captcha" .}}{{end}}
{{end}}