2017-06-28 13:42:38 +02:00
{{ extends "layouts/index_site" }}
{{ import "layouts/partials/helpers/search" }}
{{block title()}}{{ T("home")}}{{end}}
2017-07-03 02:16:39 +02:00
{{block contclass()}}{{if User.HasAdmin() }}content-admin{{end}}{{end}}
2017-06-28 13:42:38 +02:00
{{block additional_header()}}
2017-06-12 01:14:26 +02:00
< link rel = "stylesheet" href = "/css/flags/flags.min.css" >
< link rel = "stylesheet" href = "/css/flags/custom_flags.css" >
{{end}}
2017-06-28 13:42:38 +02:00
{{block content_body()}}
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
<!-- Contain the table within a grid, as for better sizing -->
2017-07-07 01:20:00 +02:00
{{if Search.ShowRefine}}
2017-06-28 13:42:38 +02:00
{{yield search_refine()}}
2017-06-17 03:00:46 +02:00
{{end}}
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
< div class = "results box" >
< table >
2017-05-26 17:35:55 +02:00
< thead class = "torrent-info" >
< tr >
2017-07-03 02:16:39 +02:00
{{ if User.HasAdmin() }}
2017-06-23 03:15:56 +02:00
< th class = "tr-cb hide" > < input type = "checkbox" name = "select_all" onchange = "TorrentsMod.selectAll(this.checked)" > < / th >
2017-06-02 04:51:44 +02:00
{{end}}
2017-06-28 13:42:38 +02:00
< th class = "tr-cat" > {{ T("category")}}< / th >
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
< th class = "tr-name" >
2017-06-28 13:42:38 +02:00
< a href = "{{ genSearchWithOrdering(URL, " 1 " ) } } " > {{ T("name")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "1")|raw }}< / span > < / a >
2017-05-13 18:53:54 +02:00
< / th >
2017-06-04 02:28:33 +02:00
< th class = "tr-cs" > < / th >
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
< th class = "tr-links" > < / th >
2017-06-28 13:42:38 +02:00
< th class = "tr-size hide-xs" > < a href = "{{ genSearchWithOrdering(URL, " 4 " ) } } " > {{ T("size")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "4")|raw }}< / span > < / a > < / th >
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
< th class = "tr-se hide-xs" >
2017-06-28 13:42:38 +02:00
< a href = "{{ genSearchWithOrdering(URL, " 5 " ) } } " > {{ T("S")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "5")|raw }}< / span > < / a >
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
< / th >
< th class = "tr-le hide-xs" >
2017-06-28 13:42:38 +02:00
< a href = "{{ genSearchWithOrdering(URL, " 6 " ) } } " > {{ T("L")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "6")|raw }}< / span > < / a >
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
< / th >
< th class = "tr-dl hide-xs" >
2017-06-28 13:42:38 +02:00
< a href = "{{ genSearchWithOrdering(URL, " 7 " ) } } " > {{ T("D")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "7")|raw }}< / span > < / a >
2017-05-20 12:45:27 +02:00
< / th >
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
<!-- <th><span class="glyphicon glyphicon - comment"></span></th> -->
2017-06-28 13:42:38 +02:00
< th class = "tr-date hide-xs" > < a href = "{{ genSearchWithOrdering(URL, " 2 " ) } } " > {{ T("date")}}< span class = "sort-arrows" > {{ genSortArrows(URL, "2")|raw }}< / span > < / a > < / th >
2017-05-05 03:53:38 +02:00
< / tr >
2017-05-26 17:35:55 +02:00
< / thead >
2017-06-24 01:05:21 +02:00
< tbody id = "torrentListResults" >
2017-06-28 13:42:38 +02:00
{{ range Models}}
< tr id = "torrent_{{ .ID }}" class = "torrent-info {{if .Status == 2}}remake{{else if .Status == 3}}trusted{{else if .Status == 4}}aplus{{end}}" >
2017-07-03 02:16:39 +02:00
{{ if User.HasAdmin() }}
2017-06-23 03:15:56 +02:00
< td class = "tr-cb hide" >
2017-06-02 04:51:44 +02:00
< input data-name = "{{ .Name }}" type = "checkbox" id = "torrent_cb_{{ .ID }}" name = "torrent_id" value = "{{ .ID }}" >
< / td >
{{ end }}
2017-06-24 01:05:21 +02:00
< td class = "tr-cat home-td" >
{{ if Sukebei }}
2017-06-28 13:42:38 +02:00
< div class = "nyaa-cat sukebei-cat-{{ .Category }}{{ .SubCategory }}" >
2017-06-24 01:05:21 +02:00
{{ else}}
2017-06-28 13:42:38 +02:00
< div class = "nyaa-cat nyaa-cat-{{ .SubCategory}}" >
2017-06-24 01:05:21 +02:00
{{end}}
2017-07-03 16:29:15 +02:00
< a href = "{{ URL.Parse(" / search ? c = "+.Category+" _ " + . SubCategory ) } } " title = "{{ T(CategoryName(.Category, .SubCategory)) }}" class = "category" >
{{if .Languages[0] != "" }}
2017-07-07 02:25:36 +02:00
< a href = "{{ URL.Parse(" / search ? c = "+.Category+" _ " + . SubCategory + " & lang = ") }}{{ range key, language := .Languages }}{{ language }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}" >
2017-07-07 00:20:06 +02:00
< img src = "/img/blank.gif" alt = "{{ LanguageName(.Languages[0], T) }}" class = "flag flag-{{ (len(.Languages) == 1) ? FlagCode(.Languages[0]) : " multiple " } } " title = " {{ range key, language := .Languages }}{{ LanguageName(language, T) }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}" >
2017-07-03 16:29:15 +02:00
< / a >
{{end}}
2017-06-24 01:05:21 +02:00
< / a >
< / div >
< / td >
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
< td class = "tr-name home-td" >
2017-06-28 13:42:38 +02:00
< a href = "/view/{{ .ID }}" >
2017-05-05 10:12:29 +02:00
{{.Name}}
< / a >
< / td >
2017-06-05 21:11:28 +02:00
< td class = "tr-cs home-td" >
2017-06-28 13:42:38 +02:00
{{ if len(.Comments) > 0 }}
< span > {{len(.Comments)}}< / span >
2017-06-04 02:28:33 +02:00
{{end}}
2017-05-19 07:36:32 +02:00
< / td >
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
< td class = "tr-links home-td" >
2017-06-28 13:42:38 +02:00
< a href = "{{.Magnet}}" title = "{{ T(" magnet_link " ) } } " >
2017-06-16 00:57:52 +02:00
< div class = "icon-magnet" > < / div >
2017-05-05 10:12:29 +02:00
< / a >
2017-06-28 13:42:38 +02:00
{{if .TorrentLink != ""}}
< a href = "{{.TorrentLink}}" title = "{{ T(" torrent_file " ) } } " >
2017-06-16 00:57:52 +02:00
< div class = "icon-floppy" > < / div >
2017-05-07 18:58:11 +02:00
< / a >
2017-05-09 16:42:12 +02:00
{{end}}
2017-05-05 03:53:38 +02:00
< / td >
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
< td class = "tr-size home-td hide-xs" >
2017-06-28 13:42:38 +02:00
{{ fileSize(.Filesize, T) }}
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
< / td >
2017-06-16 00:58:58 +02:00
{{if .LastScrape.IsZero}}
2017-06-28 13:42:38 +02:00
< td class = "home-td hide-xs" colspan = "3" > {{ T("unknown")}}< / td >
2017-06-16 00:58:58 +02:00
{{else}}
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
< td class = "tr-se home-td hide-xs" > {{.Seeders}}< / td >
< td class = "tr-le home-td hide-xs" > {{.Leechers}}< / td >
< td class = "tr-dl home-td hide-xs" > {{.Completed}}< / td >
2017-06-16 00:58:58 +02:00
{{end}}
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
< td class = "tr-date home-td date-short hide-xs" > {{.Date}}< / td >
2017-05-05 03:53:38 +02:00
< / tr >
{{end}}
2017-05-30 00:28:21 +02:00
< / tbody >
2017-05-05 03:53:38 +02:00
< / table >
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
< / div >
2017-07-03 02:16:39 +02:00
{{ if User.HasAdmin() }}
2017-06-02 04:51:44 +02:00
< div class = "modtools" >
2017-06-28 13:42:38 +02:00
< button id = "show_actions" class = "form-input" data-toggle-text = "{{ T(" hide_mod_tools " ) } } " > {{ T("show_mod_tools")}}< / button >
2017-06-02 04:51:44 +02:00
< span class = "actions" >
< span class = "btn-group" >
2017-06-16 00:57:52 +02:00
< select class = "cb_action" name = "category_id" style = "width: 14em;" >
2017-06-28 13:42:38 +02:00
< option value = "" > {{ T("category")}}< / option >
2017-07-06 22:19:44 +02:00
{{ range _, cat := GetCategories(true, true) }}
< option value = "{{ cat.ID }}" > {{ T(cat.Name) }}< / option >
2017-06-02 04:51:44 +02:00
{{ end }}
< / select >
2017-06-28 13:42:38 +02:00
< input class = "cb_action" type = "number" name = "owner_id" style = "width: 10em;" placeholder = "{{ T(" owner_id_placeholder " ) } } " >
2017-06-02 04:51:44 +02:00
< select class = "cb_action" name = "status_id" >
2017-06-28 13:42:38 +02:00
< option value = "" > {{ T("torrent_status")}}< / option >
< option value = "5" > {{ T("torrent_status_blocked") }}< / option >
< option value = "1" > {{ T("torrent_status_normal")}}< / option >
< option value = "2" > {{ T("torrent_status_remake")}}< / option >
< option value = "3" > {{ T("trusted")}}< / option >
2017-06-02 04:51:44 +02:00
< option value = "4" > A+< / option >
< / select >
2017-07-08 15:07:26 +02:00
< button class = "cb_action form-input btn-orange" id = "edit" > {{ T("edit") }}< / button >
2017-06-02 04:51:44 +02:00
< / span >
< span class = "btn-group" >
2017-07-08 15:07:26 +02:00
< button class = "cb_action form-input btn-red" id = "lock_delete" > {{ T("lock_delete") }}< / button >
< button class = "cb_action form-input btn-red" id = "delete" > {{ T("delete") }}< / button >
2017-06-02 04:51:44 +02:00
< / span >
< span class = "btn-group" >
2017-06-28 13:42:38 +02:00
< button class = "cb_submit form-input btn-green" id = "modal_active" > {{ T("save_changes") }}< / button >
2017-06-02 04:51:44 +02:00
< / span >
< / span >
< / div >
<!-- Modal -->
< div id = "modal_mod_tools" class = "modal" >
<!-- Modal content -->
< div class = "modal-content" >
< div class = "modal-header" >
< span class = "close" > × < / span >
2017-06-28 13:42:38 +02:00
< h2 > {{ T("following_changes_applied") }}< / h2 >
2017-06-02 04:51:44 +02:00
< / div >
< div class = "modal-body" >
2017-06-28 13:42:38 +02:00
< h3 > {{ T("changes_in_following_order") }}< / h3 >
2017-06-02 04:51:44 +02:00
< div class = "progress-bar" id = "progress_modtool" style = "display: none;" > < div class = "progress-green" > < / div > < / div >
< hr >
< div class = "logs_mess" style = "display: none;" > < / div >
2017-06-28 13:42:38 +02:00
< h2 > {{ T("edit_changes") }}< / h2 >
2017-06-02 04:51:44 +02:00
< div class = "edit_changes" > < / div >
2017-06-28 13:42:38 +02:00
< h2 > {{ T("delete_changes") }}< / h2 >
2017-06-02 04:51:44 +02:00
< div class = "delete_changes" > < / div >
< / div >
< div class = "modal-footer" >
2017-06-28 13:42:38 +02:00
< span > < button id = "confirm_changes" onclick = "TorrentsMod.ApplyChanges();" > {{ T("yes")}}< / button >
< button class = "close" onclick = "Modal.CloseActive();" > {{ T("no")}}< / button > < / span >
< h3 > {{ T("are_you_sure") }} < / h3 >
2017-06-02 04:51:44 +02:00
< / div >
< / div >
< / div >
{{end}}
2017-05-05 13:06:41 +02:00
{{end}}
2017-06-28 13:42:38 +02:00
{{ block footer_js()}}
< script type = "text/javascript" src = "{{ URL.Parse(" / js / template . js " ) } } " > < / script >
< script type = "text/javascript" src = "{{ URL.Parse(" / js / query . js " ) } } " > < / script >
< script type = "text/javascript" src = "{{ URL.Parse(" / js / modal . js " ) } } " > < / script >
< script type = "text/javascript" src = "{{ URL.Parse(" / js / torrents . js " ) } } " > < / script >
< script type = "text/javascript" src = "{{ URL.Parse(" / js / translation . js " ) } } " > < / script >
2017-07-07 02:25:36 +02:00
{{ if User.HasAdmin() }}
2017-06-28 13:42:38 +02:00
< script type = "text/javascript" src = "{{ URL.Parse(" / js / torrentsMod . js " ) } } " > < / script >
2017-06-02 04:51:44 +02:00
< script type = "text/javascript" >
2017-06-02 15:42:53 +02:00
// We add translations string
T.Add({
2017-06-28 13:42:38 +02:00
try_new_attempt: "{{ T("try_new_attempt") }}",
query_is_broken: "{{ T("query_is_broken") }}",
query_executed_success: "{{ T("query_executed_success") }}",
all_operations_done: "{{ T("all_operations_done") }}",
refreshing_in: "{{ T("refreshing_in") }}",
delete_reports_with_torrents: "{{ T("delete_reports_with_torrents") }}",
with_st: "{{ T("with_st") }}",
and_reports: "{{ T("and_reports") }}",
reports: "{{ T("reports") }}",
lock: "{{ T("lock") }}",
status_js: "{{ T("status_js") }}",
owner_id_js: "{{ T("owner_id_js") }}",
category_js: "{{ T("category_js") }}",
no_changes: "{{ T("no_changes") }}",
query_nb: "{{ T("query_nb") }}"
2017-06-02 15:42:53 +02:00
});
// Modal initialization
2017-06-02 04:51:44 +02:00
Modal.Init({elements: document.getElementsByClassName("modal"),
button: "#modal_active",
before: function() {
TorrentsMod.generatingModal();
},
close: function() {
TorrentsMod.resetModal();
}
});
2017-06-02 15:42:53 +02:00
// Templates initialization
2017-06-02 04:51:44 +02:00
Templates.Add("torrents.delete.item", function(torrent) {
return '< div class = "delete_item" id = "list_item_'+torrent.id+'" > < span > '+Templates.EncodeEntities(torrent.name)+'< / span > '+
'< a href = "#" onclick = "return TorrentsMod.RemoveItemFromQueue('+torrent.key+', '+torrent.id+')" > < i class = "trash-icon" > < / i > < / a > < / div > '
});
Templates.Add("torrents.delete.block", function(torrentQuery){
return '< div class = "delete_list" id = "list_'+torrentQuery.unique_id+'" > < div class = "title" > '+
2017-06-02 15:42:53 +02:00
'< h3 style = "display:inline-block;" onclick = "TorrentsMod.toggleList(this);" > '+T.r("query_nb", torrentQuery.unique_id)+
2017-06-02 04:51:44 +02:00
'< / h3 > '+
'< span class = "infos" > '+torrentQuery.infos+'< a href = "#" class = "icon" onclick = "return TorrentsMod.RemoveFromQueue('+torrentQuery.key+')" > < div class = "trash-icon" > < / div > < / a > '+
'< / span > < / div > '+
'< div class = "list" > '+torrentQuery.list+'< / div > < / div > ';
});
Templates.Add("torrents.edit.item", function(torrent) {
return '< div class = "edit_item" id = "list_item_'+torrent.id+'" > < span > '+Templates.EncodeEntities(torrent.name)+'< / span > '+
'< a href = "#" onclick = "return TorrentsMod.RemoveItemFromQueue('+torrent.key+', '+torrent.id+')" > < i class = "trash-icon" > < / i > < / a > < / div > '
});
Templates.Add("torrents.edit.block", function(torrentQuery){
return '< div class = "edit_list" id = "list_'+torrentQuery.unique_id+'" > < div class = "title" > '+
2017-06-02 15:42:53 +02:00
'< h3 style = "display:inline-block;" onclick = "TorrentsMod.toggleList(this);" > '+T.r("query_nb", torrentQuery.unique_id)+
2017-06-02 04:51:44 +02:00
'< / h3 > '+
'< span class = "infos" > '+torrentQuery.infos+'< a href = "#" class = "icon" onclick = "return TorrentsMod.RemoveFromQueue('+torrentQuery.key+')" > < div class = "trash-icon" > < / div > < / a > '+
'< / span > < / div > '+
'< div class = "list" > '+torrentQuery.list+'< / div > < / div > ';
});
Templates.Add("torrents.logs.error", function(msg) {
return '< div class = "error" > '+msg+'< / div > ';
});
Templates.Add("torrents.logs.success", function(msg) {
return '< div class = "success" > '+msg+'< / div > ';
});
< / script >
2017-06-28 13:42:38 +02:00
{{end}}
2017-06-02 15:42:53 +02:00
<!-- JS Template for torrents ajax -->
2017-05-30 00:28:21 +02:00
< script type = "text/javascript" >
2017-07-07 02:25:36 +02:00
{{ range _, cat := GetCategories(false, true) }}
T.Add("{{ cat.ID }}", "{{ T(cat.Name) }}")
{{end}}
{{ range _, language := GetTorrentLanguages() }}
T.Add("{{ language }}", "{{ LanguageName(language, T) }}")
{{end}}
2017-05-30 00:28:21 +02:00
Templates.Add("torrents.item", function(torrent) {
2017-06-04 02:28:33 +02:00
return "< tr id = \"torrent_" + torrent . id + " \ " class = \"torrent-info"+ ( ( torrent . status = = 2 ) ? " remake " : ( ( torrent . status = = 3 ) ? " trusted " : ( ( torrent . status = = 3 ) ? " aplus " : " " ) ) ) + " \ " > "+
2017-07-03 02:16:39 +02:00
{{ if User.HasAdmin() }}
2017-06-02 15:42:53 +02:00
"< td class = \"tr-cb\""+ ( ( TorrentsMod . enabled ) ? " style = \"display:table-cell;\"" : " " ) + " > "+
"< input data-name = \""+Templates.EncodeEntities(torrent.name)+"\" type = \"checkbox\" id = \"torrent_cb_"+torrent.id+"\" name = \"torrent_id\" value = \""+torrent.id+"\" > "+
"< / td > "+
{{ end }}
2017-06-24 01:05:21 +02:00
"< td class = \"tr-cat home-td \ " > "+
2017-06-28 13:42:38 +02:00
{{ if Sukebei() }}
2017-06-24 01:05:21 +02:00
"< div class = \"nyaa-cat sukebei-cat- " + torrent . category + torrent . sub_category + " \ " > "+
{{else}}
"< div class = \"nyaa-cat nyaa-cat- " + torrent . sub_category + " \ " > "+
{{end}}
2017-07-07 01:58:02 +02:00
"< a href = \"{{URL.Parse("/search?c=") } } " + torrent . category + " _ " + torrent . sub_category + " \ " title = \""+ T . r ( torrent . category + " _ " + torrent . sub_category ) + " \ " > "+
2017-07-07 02:25:36 +02:00
((torrent.languages[0] != "") ? "< a href = \"{{URL.Parse("/search?c=") } } " + torrent . category + " _ " + torrent . sub_category + " & lang = " + torrent.languages.join(" , " ) + " \ " > < img src = \"img/blank.gif\" class = \"flag flag- " + ( ( torrent . languages . length = = 1 ) ? flagCode ( torrent . languages [ 0 ] ) : " multiple " ) + " \ " title = \""+torrent.languages.map(function ( el , i ) { return T . r ( el ) } ) . join ( " , " ) + " \ " > < / a > " : "") +
2017-05-30 00:28:21 +02:00
"< / a > "+
2017-06-24 01:05:21 +02:00
"< / div > < / td > "+
2017-05-30 15:19:45 +02:00
"< td class = \"tr-name home-td \ " > < a href = \"/view/"+torrent.id+"\" > "+Templates.EncodeEntities(torrent.name) +"< / a > < / td > "+
2017-06-04 02:28:33 +02:00
"< td class = \"tr-cs home-td hide-xs \ " > "+
2017-06-28 13:42:38 +02:00
((torrent.comments.length > 0) ? "< i class = \"comment-icon\" title = \"{{ T ( " comments " ) } } \ " > " + torrent.comments.length + "< / i > " : "")+
2017-06-04 02:28:33 +02:00
"< / td > "+
2017-05-30 00:28:21 +02:00
"< td class = \"tr-links home-td \ " > "+
2017-06-28 13:42:38 +02:00
"< a href = \""+torrent.magnet + " \ " title = \"{{ T ( " magnet_link " ) } } \ " > "+
2017-06-24 01:05:21 +02:00
"< div class = \"icon-magnet\" > < / div > "+
2017-06-28 13:42:38 +02:00
"< / a > "+(torrent.torrent != "" ? " < a href = \""+torrent.torrent+"\" title = \"{{ T ( " torrent_file " ) } } \ " > < div class = \"icon-floppy\" > < / div > < / a > " : "") +
2017-05-30 00:28:21 +02:00
"< / td > "+
"< td class = \"tr-size home-td hide-xs \ " > "+humanFileSize(torrent.filesize)+"< / td > "+
"< td class = \"tr-se home-td hide-xs \ " > "+torrent.seeders+"< / td > "+
"< td class = \"tr-le home-td hide-xs \ " > "+torrent.leechers+"< / td > "+
"< td class = \"tr-dl home-td hide-xs \ " > "+torrent.completed+"< / td > "+
"< td class = \"tr-date home-td date-short hide-xs \ " > "+torrent.date+"< / td > "+
"< / tr > ";
});
2017-06-28 13:42:38 +02:00
Torrents.LastID = {{ lastID(URL, Models) }};
2017-06-02 04:51:44 +02:00
if (Torrents.LastID > 0) Torrents.CanRefresh = true;
2017-05-30 00:28:21 +02:00
< / script >
2017-06-24 01:05:21 +02:00
{{end}}