2017-05-07 01:20:13 +02:00
{{define "search_common"}}
< select name = "c" class = "form-control input-sm" value >
2017-05-08 22:42:44 +02:00
< option value = "_" > {{T "all_categories"}}< / option >
< option value = "3_" { { if eq . Search . Category " 3_ " } } selected { { end } } > {{T "anime"}}< / option >
< option value = "3_12" { { if eq . Search . Category " 3_12 " } } selected { { end } } > {{T "anime_amv"}}< / option >
< option value = "3_5" { { if eq . Search . Category " 3_5 " } } selected { { end } } > {{T "anime_english_translated"}}< / option >
< option value = "3_13" { { if eq . Search . Category " 3_13 " } } selected { { end } } > {{T "anime_non_english_translated"}}< / option >
< option value = "3_6" { { if eq . Search . Category " 3_6 " } } selected { { end } } > {{T "anime_raw"}}< / option >
< option value = "2_" { { if eq . Search . Category " 2_ " } } selected { { end } } > {{T "audio"}}< / option >
< option value = "2_3" { { if eq . Search . Category " 2_3 " } } selected { { end } } > {{T "audio_lossless"}}< / option >
< option value = "2_4" { { if eq . Search . Category " 2_4 " } } selected { { end } } > {{T "audio_lossy"}}< / option >
< option value = "4_" { { if eq . Search . Category " 4_ " } } selected { { end } } > {{T "literature"}}< / option >
< option value = "4_7" { { if eq . Search . Category " 4_7 " } } selected { { end } } > {{T "literature_english_translated"}}< / option >
< option value = "4_8" { { if eq . Search . Category " 4_8 " } } selected { { end } } > {{T "literature_raw"}}< / option >
< option value = "4_14" { { if eq . Search . Category " 4_14 " } } selected { { end } } > {{T "literature_non_english_translated"}}< / option >
< option value = "5_" { { if eq . Search . Category " 5_ " } } selected { { end } } > {{T "live_action"}}< / option >
< option value = "5_9" { { if eq . Search . Category " 5_9 " } } selected { { end } } > {{T "live_action_english_translated"}}< / option >
< option value = "5_10" { { if eq . Search . Category " 5_10 " } } selected { { end } } > {{T "live_action_idol_pv"}}< / option >
< option value = "5_18" { { if eq . Search . Category " 5_18 " } } selected { { end } } > {{T "live_action_non_english_translated"}}< / option >
< option value = "5_11" { { if eq . Search . Category " 5_11 " } } selected { { end } } > {{T "live_action_raw"}}< / option >
< option value = "6_" { { if eq . Search . Category " 6_ " } } selected { { end } } > {{T "pictures"}}< / option >
< option value = "6_15" { { if eq . Search . Category " 6_15 " } } selected { { end } } > {{T "pictures_graphics"}}< / option >
< option value = "6_16" { { if eq . Search . Category " 6_16 " } } selected { { end } } > {{T "pictures_photos"}}< / option >
< option value = "1_" { { if eq . Search . Category " 1_ " } } selected { { end } } > {{T "software"}}< / option >
< option value = "1_1" { { if eq . Search . Category " 1_1 " } } selected { { end } } > {{T "software_applications"}}< / option >
< option value = "1_2" { { if eq . Search . Category " 1_2 " } } selected { { end } } > {{T "software_games"}}< / option >
2017-05-07 01:20:13 +02:00
< / select >
< select name = "s" class = "form-control input-sm" >
2017-05-09 13:31:58 +02:00
< option value = "0" > {{T "show_all"}}< / option >
< option value = "1" { { if eq . Search . Status 1 } } selected { { end } } > {{T "filter_remakes"}}< / option >
< option value = "2" { { if eq . Search . Status 2 } } selected { { end } } > {{T "trusted"}}< / option >
< option value = "3" { { if eq . Search . Status 3 } } selected { { end } } > A+< / option >
2017-05-07 01:20:13 +02:00
< / select >
{{end}}
{{define "search_advanced"}}
< select name = "sort" class = "form-control input-sm" >
2017-05-09 13:31:58 +02:00
< option value = "0" { { if eq . Search . Sort 0 } } selected { { end } } > {{T "id"}}< / option >
< option value = "1" { { if eq . Search . Sort 1 } } selected { { end } } > {{T "name"}}< / option >
< option value = "2" { { if eq . Search . Sort 2 } } selected { { end } } > {{T "date"}}< / option >
< option value = "3" { { if eq . Search . Sort 3 } } selected { { end } } > {{T "downloads"}}< / option >
< option value = "4" { { if eq . Search . Sort 4 } } selected { { end } } > {{T "size"}}< / option >
2017-05-11 02:26:58 +02:00
< option value = "5" { { if eq . Search . Sort 4 } } selected { { end } } > {{T "seeders"}}< / option >
< option value = "6" { { if eq . Search . Sort 4 } } selected { { end } } > {{T "leechers"}}< / option >
< option value = "7" { { if eq . Search . Sort 4 } } selected { { end } } > {{T "completed"}}< / option >
2017-05-07 01:20:13 +02:00
< / select >
< select name = "order" class = "form-control input-sm" >
2017-05-09 13:31:58 +02:00
< option value = "false" { { if eq . Search . Order false } } selected { { end } } > {{T "descending"}}< / option >
< option value = "true" { { if eq . Search . Order true } } selected { { end } } > {{T "ascending"}}< / option >
2017-05-07 01:20:13 +02:00
< / select >
< select name = "max" class = "form-control input-sm" >
< option value = "5" { { if eq . Navigation . MaxItemPerPage 5 } } selected { { end } } > 5< / option >
< option value = "10" { { if eq . Navigation . MaxItemPerPage 10 } } selected { { end } } > 10< / option >
< option value = "15" { { if eq . Navigation . MaxItemPerPage 15 } } selected { { end } } > 15< / option >
< option value = "20" { { if eq . Navigation . MaxItemPerPage 20 } } selected { { end } } > 20< / option >
< option value = "25" { { if eq . Navigation . MaxItemPerPage 25 } } selected { { end } } > 25< / option >
< option value = "30" { { if eq . Navigation . MaxItemPerPage 30 } } selected { { end } } > 30< / option >
< option value = "35" { { if eq . Navigation . MaxItemPerPage 35 } } selected { { end } } > 35< / option >
< option value = "40" { { if eq . Navigation . MaxItemPerPage 40 } } selected { { end } } > 40< / option >
< option value = "45" { { if eq . Navigation . MaxItemPerPage 45 } } selected { { end } } > 45< / option >
< option value = "50" { { if eq . Navigation . MaxItemPerPage 50 } } selected { { end } } > 50< / option >
< option value = "70" { { if eq . Navigation . MaxItemPerPage 70 } } selected { { end } } > 70< / option >
< option value = "100" { { if eq . Navigation . MaxItemPerPage 100 } } selected { { end } } > 100< / option >
< option value = "150" { { if eq . Navigation . MaxItemPerPage 150 } } selected { { end } } > 150< / option >
< option value = "200" { { if eq . Navigation . MaxItemPerPage 200 } } selected { { end } } > 200< / option >
< option value = "300" { { if eq . Navigation . MaxItemPerPage 300 } } selected { { end } } > 300< / option >
< / select >
{{end}}
{{define "search_button"}}
< div class = "input-group" >
2017-05-08 22:42:44 +02:00
< input name = "q" class = "form-control input-sm" placeholder = "{{T " search " } } " type = "text" value = "{{.Search.Query}}" >
2017-05-07 01:20:13 +02:00
< span class = "input-group-btn" >
2017-05-08 22:42:44 +02:00
< button type = "submit" class = "btn btn-sm btn-success" > < span class = "glyphicon glyphicon-search" aria-hidden = "true" > < / span > < span class = "search_text" > {{T "search"}}< / span > < / button >
2017-05-07 01:20:13 +02:00
< / span >
< / div >
{{end}}