{{ extends "layouts/index_site" }} {{ import "layouts/partials/helpers/csrf" }} {{ import "layouts/partials/helpers/captcha" }} {{ import "layouts/partials/helpers/errors" }} {{ import "layouts/partials/helpers/treeview" }} {{block title()}}{{Torrent.Name}}{{end}} {{block content_body()}}
{{ T("category") }}: |
{{ CategoryName(Torrent.Category, Torrent.SubCategory) == "" ? T("unknown") : T(CategoryName(Torrent.Category, Torrent.SubCategory)) }}
|
{{ T("date") }}: | {{Torrent.Date}} |
{{ T("uploaded_by") }}: | {{ genUploaderLink(Torrent.UploaderID, Torrent.UploaderName, Torrent.Hidden)|raw }} | {{ T("seeders")}}: | {{if Torrent.LastScrape.IsZero}}{{ T("unknown")}}{{else}}{{Torrent.Seeders}}{{end}} |
{{ T("website_link") }}: | {{if Torrent.WebsiteLink != ""}} {{Torrent.WebsiteLink}} {{else}}N/A{{end}} | {{ T("leechers")}}: | {{if Torrent.LastScrape.IsZero}}{{ T("unknown")}}{{else}}{{Torrent.Leechers}}{{end}} |
{{ T("hash")}}: | {{Torrent.Hash}} | {{ T("completed")}}: | {{if Torrent.LastScrape.IsZero}}{{ T("unknown")}}{{else}}{{Torrent.Completed}}{{end}} |
{{ T("size")}}: | {{ fileSize(Torrent.Filesize, T) }} | {{ T("last_scraped")}} | {{formatDateRFC(Torrent.LastScrape)}}{{else}}">{{ T("unknown")}}{{end}} |
{{ T("torrent_language")}}: | {{ range _, language := Torrent.Languages}} {{ if language != "" }} 5 }}class="big"{{ end }}> {{ LanguageNameFromCode(language, T) }} {{end}} {{end}} | ||
{{ T("torrent_tags")}}: | {{ range Torrent.Tags }} {{if .Accepted || User.ID > 0 }} {{ T("tagtype_" + .Type) }}: {{ .Tag }} {{ if !.Accepted }} {{ end }} {{end}} {{end}} {{ if User.ID > 0 }}{{ T("add") }}{{ end }} |
{{ T("description")}}
{{ if Torrent.Description != ""}}{{ T("no_description") }}
{{end}} 1}}checked{{end}}/>{{ T("comments")}}
{{range index, element := Torrent.Comments}}
{{element.Username}}
{{element.Content|raw}}