{{ range _, cat := GetCategories(false, true) }} T.Add("{{ cat.ID }}", "{{ T(cat.Name) }}") {{end}} {{ range _, language := GetTorrentLanguages() }} T.Add("{{ language.Code }}", "{{ LanguageName(language, T) }}") {{ if language.Tag != language.Code }} T.Add("{{ language.Tag }}", "{{ LanguageName(language, T) }}") {{end}} {{end}} Templates.Add("torrents.item", function(torrent) { return ""+ {{ if User.HasAdmin() }} (( TorrentsMod.enabled ) ? "" : "")+ ""+ ""+ {{ end }} ""+ {{ if Sukebei() }} "
"+ {{else}} "
"+ {{end}} ""+ ((torrent.languages[0] != "") ? "" : "") + ""+ "
"+ ""+Templates.EncodeEntities(torrent.name) +""+ ((torrent.comments.length > 0) ? ""+ torrent.comments.length + "" : "")+ ""+ ""+ "
"+ "
"+(torrent.torrent != "" ? "
" : "") + ""+ ""+humanFileSize(torrent.filesize)+""+ ""+torrent.seeders+""+ ""+torrent.leechers+""+ ""+torrent.completed+""+ ""+torrent.date+""+ ""; });