2017-05-07 01:20:13 +02:00
{{define "search_common"}}
2017-05-28 04:24:51 +02:00
< select name = "c" class = "form-input hide-xs" >
2017-05-21 00:38:28 +02:00
< option value = "_" > {{call $.T "all_categories"}}< / option >
2017-06-17 04:24:30 +02:00
{{ range $name_cat, $id_cat := (GetCategories true true) }}
2017-05-23 04:05:33 +02:00
< option value = "{{ $id_cat }}" { { if eq $ . Search . Category $ id_cat } } selected { { end } } > {{call $.T $name_cat }}< / option >
{{ end }}
2017-05-07 01:20:13 +02:00
< / select >
2017-05-25 02:20:30 +02:00
< label > < span class = "select-icon caret-down-icon" > < / span > < / label >
2017-05-28 04:24:51 +02:00
< select name = "s" class = "form-input hide-xs" >
2017-05-21 00:38:28 +02:00
< option value = "0" > {{call $.T "show_all"}}< / option >
< option value = "1" { { if eq . Search . Status 1 } } selected { { end } } > {{call $.T "filter_remakes"}}< / option >
< option value = "2" { { if eq . Search . Status 2 } } selected { { end } } > {{call $.T "trusted"}}< / option >
2017-05-09 13:31:58 +02:00
< option value = "3" { { if eq . Search . Status 3 } } selected { { end } } > A+< / option >
2017-05-07 01:20:13 +02:00
< / select >
2017-05-14 13:01:59 +02:00
{{ if .Search.ShowItemsPerPage }}
2017-05-28 04:24:51 +02:00
< select name = "max" class = "form-input hide-xs" >
2017-05-07 01:20:13 +02:00
< 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 >
2017-05-14 13:01:59 +02:00
{{ end }}
2017-05-13 18:53:54 +02:00
< input type = "hidden" name = "userID" value = "{{ .Search.UserID }}" >
2017-05-07 01:20:13 +02:00
{{end}}
{{define "search_button"}}
Frontend rewrite (DONE) (#723)
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Begin work on profile page
* fucking git, man
* Damn, that looks sexy
* Complete login and register pages, include very minimal grid system, and delete all of view template
* Do view page!
* Finish view even more
* Fix dates and filesizes in torrent table
* Improve comment/captcha input
* Actually add magnet and torrent buttons
* Add open-iconic instead of fontawesome
* Improve user side-panel
* Rename Category_* to CategoryName
* Beginning to finish up
* Implement themes and add basic mobile support to front page
* Fix some slight color errors
* Fix captcha on dark
* magnet and torrent links on view
2017-05-24 06:20:51 +02:00
< input class = "form-input search-box" name = "q" placeholder = "{{call $.T " search " } } " type = "text" value = "{{.Search.Query}}" >
2017-06-16 00:57:52 +02:00
< button type = "submit" class = "form-input icon-search" > < / button >
2017-05-07 01:20:13 +02:00
{{end}}
2017-06-17 03:00:46 +02:00
{{define "search_refine"}}
< div style = "text-align:left;" class = "box" >
2017-06-20 04:07:03 +02:00
< details >
< summary class = "form-input refine-drop" > {{ call $.T "refine_search" }}< / summary >
< form style = "display: grid;" method = "GET" action = "" >
2017-06-20 02:06:01 +02:00
< input type = "hidden" name = "s" value = "{{.Search.Status}}" / >
< input type = "hidden" name = "c" value = "{{.Search.Category}}" / >
< input type = "hidden" name = "max" value = "{{.Navigation.MaxItemPerPage}}" / >
< input type = "hidden" name = "userID" value = "{{.Search.UserID}}" / >
< input type = "hidden" name = "q" value = "{{.Search.Query}}" / >
2017-06-20 04:07:03 +02:00
< span style = "margin-top: 10px;" class = "form-refine" > {{ call $.T "between"}} < input class = "form-input" size = "7" name = "minSize" type = "text" value = "{{.Search.MinSize}}" > {{ call $.T "and"}} < input size = "7" class = "form-input" name = "maxSize" type = "text" value = "{{.Search.MaxSize}}" >
2017-06-17 03:00:46 +02:00
< select name = "sizeType" class = "form-input" >
2017-06-20 02:06:01 +02:00
< option value = "b" { { if eq . Search . SizeType " b " } } selected { { end } } > B< / option >
< option value = "k" { { if eq . Search . SizeType " k " } } selected { { end } } > KiB< / option >
< option value = "m" { { if eq . Search . SizeType " m " } } selected { { end } } > MiB< / option >
< option value = "g" { { if eq . Search . SizeType " g " } } selected { { end } } > GiB< / option >
2017-06-17 03:00:46 +02:00
< / select >
2017-06-20 04:07:03 +02:00
{{ call $.T "large"}}.
2017-06-17 03:00:46 +02:00
< / span >
2017-06-20 04:07:03 +02:00
< span class = "form-refine" > {{ call $.T "between"}} < input class = "form-input" size = "7" name = "fromDate" type = "text" value = "{{.Search.FromDate}}" > {{ call $.T "and"}} < input class = "form-input" size = "7" name = "toDate" type = "text" value = "{{.Search.ToDate}}" >
2017-06-17 03:00:46 +02:00
< select name = "dateType" class = "form-input" >
2017-06-20 04:07:03 +02:00
< option value = "d" { { if eq . Search . DateType " d " } } selected { { end } } > {{ call $.T "days"}}< / option >
< option value = "m" { { if eq . Search . DateType " m " } } selected { { end } } > {{ call $.T "months"}}< / option >
< option value = "y" { { if eq . Search . DateType " y " } } selected { { end } } > {{ call $.T "years"}}< / option >
2017-06-17 03:00:46 +02:00
< / select >
2017-06-20 04:07:03 +02:00
{{call $.T "old"}}.
2017-06-17 03:00:46 +02:00
< / span >
2017-06-21 00:27:51 +02:00
< button type = "submit" class = "form-input refine-btn" > {{ call $.T "refine"}}< / button >
2017-06-20 02:06:01 +02:00
< / form >
2017-06-20 04:07:03 +02:00
< / details >
2017-06-17 03:00:46 +02:00
< / div >
{{end}}