{{ range _, cat := GetCategories(true, false) }} {{ if _ % 3 == 2}} {{end}} {{if _ + 1 == len(GetCategories(true, false)) }} {{ if _% 3 != 2}}{{ if _% 3 == 0}}{{end}}{{end}} {{end}} {{ end }} {{ if Search.Category != ""}}
{{ range _, cat := GetCategory(Search.Category[:1], true)}} {{if Search.Category == cat.ID}}{{ T(cat.Name) }}{{else}} {{ T(cat.Name)}}{{end}} {{end}}
{{end}}
{{ if Search.Sort != 2 && Search.Sort != 0}}{{ T("date") }}{{else}}{{ T("date") }}{{end}} / {{ if Search.Sort != 5}}{{ T("seeders") }}{{else}}{{ T("seeders") }}{{end}} / {{ if Search.Sort != 6}}{{ T("leechers") }}{{else}}{{ T("leechers") }}{{end}} / {{ if Search.Sort != 7}}{{ T("completed") }}{{else}}{{ T("completed") }}{{end}} / {{ if Search.Sort != 4}}{{ T("size") }}{{else}}{{ T("size") }}{{end}} / {{ if Search.Sort != 1}}{{ T("name") }}{{else}}{{ T("name") }}{{end}} | {{ if Search.Order}}{{ T("ascending") }}{{else}}{{ T("ascending") }}{{end}} / {{ if !Search.Order}}{{ T("descending") }}{{else}}{{ T("descending") }}{{end}}
{{ if Search.UserName != ""}}
{{T("browsing_user_torrents", Search.UserID, Search.UserName, Search.UserName)|raw}} ({{Navigation.TotalItem}})
{{end}}