{{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 "make_treeview" }} {{ range $index, $folder := .Folder.Folders }} {{ $folderId := (print $.IdentifierChain "_" $index) }}
{{.Name}}
{{ call $.T "category" }}: | {{ if Sukebei}}{{ call $.T (CategoryName .Category .SubCategory) }}{{else}}{{ call $.T (CategoryName .Category .SubCategory) }}{{end}} |
{{ call $.T "date" }}: | {{.Date}} |
{{ call $.T "uploaded_by" }}: | {{.UploaderName}} | {{call $.T "seeders"}}: | {{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Seeders}}{{end}} |
{{ call $.T "website_link" }}: | {{if ne .WebsiteLink ""}}{{.WebsiteLink}}{{else}}nyaa.pantsu.cat{{end}} | {{call $.T "leechers"}}: | {{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Leechers}}{{end}} |
{{call $.T "hash"}}: | {{.Hash}} | {{call $.T "completed"}}: | {{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Completed}}{{end}} |
{{call $.T "size"}}: | {{ fileSize .Filesize $.T }} | {{call $.T "last_scraped"}} | {{formatDateRFC .LastScrape}}{{else}}">{{call $.T "unknown"}}{{end}} |
{{call $.T "description"}}
{{ if ne .Description ""}}{{ call $.T "no_description" }}
{{end}}{{call $.T "filename"}} | {{call $.T "size"}} | {{ template "make_treeview" (makeTreeViewData $.RootFolder 0 $.T "root") }}
---|
{{ call $.T "no_files" }}
{{ end }}{{call $.T "comments"}}
{{range $index, $element := .Comments}}
{{.Username}}
{{.Content}}