{{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"}}
Name: | {{.Name}} | Date: | {{.Date}} |
{{ call $.T "uploaded_by" }}: | {{.UploaderName}} | {{call $.T "seeders"}}: | {{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Seeders}}{{end}} |
Website: | {{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"}} | {{if not .LastScrape.IsZero}}{{formatDateRFC .LastScrape}}{{else}}{{call $.T "unknown"}}{{end}} |
{{call $.T "description"}}
{{ if ne .Description ""}}No description provided!
{{end}}{{call $.T "files"}}
{{ if gt (len .FileList) 0 }} {{/* how do i concat lol */}} {{ $folderFormat := `{{call $.T "filename"}} | {{call $.T "size"}} | {{ MakeFolderTreeView $.RootFolder $folderFormat $fileFormat $ }}
---|
No files found? That doesn't even make sense!
{{end}}{{call $.T "comments"}}
{{range $index, $element := .Comments}}
{{.Username}}
{{.Content}}