{{if Search.Category == ""}}{{ T("all_categories")}}{{else}}{{ T("all_categories")}}{{end}} |
{{ range _, cat := GetCategories(true, false) }}
{{if Search.Category == cat.ID ||(len(Search.Category) > 2 && Search.Category[:2] == cat.ID)}}{{ T(cat.Name) }}{{else}}{{ T(cat.Name) }}{{end}} |
{{ 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.UserName != ""}}
{{T("browsing_user_torrents", Search.UserID, Search.UserName, Search.UserName)|raw}} ({{Navigation.TotalItem}})
{{end}}