2017-05-21 00:38:28 +02:00
{{define "title"}}{{call $.T "home"}}{{end}}
2017-05-06 06:20:19 +02:00
{{define "contclass"}}cont-home{{end}}
2017-05-05 03:53:38 +02:00
{{define "content"}}
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 -->
< div class = "results box" >
< table >
2017-05-26 17:35:55 +02:00
< thead class = "torrent-info" >
< tr >
2017-06-02 04:51:44 +02:00
{{ if HasAdmin $.User }}
< th class = "tr-cb" > < input type = "checkbox" name = "select_all" onchange = "TorrentsMod.selectAll(this.checked)" > < / th >
{{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
< th class = "tr-cat" > {{call $.T "category"}}< / th >
< th class = "tr-name" >
2017-05-25 02:20:30 +02:00
< a href = "{{ genSearchWithOrdering .URL " 1 " } } " > {{call $.T "name"}}< span class = "sort-arrows" > {{ genSortArrows .URL "1" }}< / 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-05-25 02:20:30 +02:00
< th class = "tr-size hide-xs" > < a href = "{{ genSearchWithOrdering .URL " 4 " } } " > {{call $.T "size"}}< span class = "sort-arrows" > {{ genSortArrows .URL "4" }}< / 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-05-25 02:20:30 +02:00
< a href = "{{ genSearchWithOrdering .URL " 5 " } } " > {{call $.T "S"}}< span class = "sort-arrows" > {{ genSortArrows .URL "5" }}< / 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-05-25 02:20:30 +02:00
< a href = "{{ genSearchWithOrdering .URL " 6 " } } " > {{call $.T "L"}}< span class = "sort-arrows" > {{ genSortArrows .URL "6" }}< / 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-05-25 02:20:30 +02:00
< a href = "{{ genSearchWithOrdering .URL " 7 " } } " > {{call $.T "D"}}< span class = "sort-arrows" > {{ genSortArrows .URL "7" }}< / 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-05-25 02:20:30 +02:00
< th class = "tr-date hide-xs" > < a href = "{{ genSearchWithOrdering .URL " 2 " } } " > {{call $.T "date"}}< span class = "sort-arrows" > {{ genSortArrows .URL "2" }}< / span > < / a > < / th >
2017-05-05 03:53:38 +02:00
< / tr >
2017-05-26 17:35:55 +02:00
< / thead >
2017-06-05 21:11:28 +02:00
< tbody >
2017-05-25 21:54:58 +02:00
{{ range .Models}}
2017-06-02 04:51:44 +02:00
< tr id = "torrent_{{ .ID }}" class = "torrent-info
2017-05-05 10:12:29 +02:00
{{if eq .Status 2}}remake{{end}}
{{if eq .Status 3}}trusted{{end}}
2017-06-05 00:43:23 +02:00
{{if eq .Status 4}}aplus{{end}}" >
2017-06-02 04:51:44 +02:00
{{ if HasAdmin $.User }}
< td class = "tr-cb" >
< input data-name = "{{ .Name }}" type = "checkbox" id = "torrent_cb_{{ .ID }}" name = "torrent_id" value = "{{ .ID }}" >
< / td >
{{ 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-cat home-td" >
Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds
The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.
* Style changes and old code removal in router
Router needs a lot of work done to its (lack of) error handling.
* Dead code removal and style changes
Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.
* Finish dead code removal and style changes
Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.
* Fix accidental find-and-replace
* Style, error checking, saftey, bug fix changes
* Redo error checking erased during merge
* Re-add merge-erased fix. Make Safe safe.
2017-05-10 04:34:40 +02:00
< a href = "{{$.URL.Parse (printf " / search ? c = %s_%s" . Category . SubCategory ) } } " >
2017-05-15 11:08:17 +02:00
{{ if Sukebei }}
2017-06-05 00:43:23 +02:00
< img alt = "{{ call $.T (CategoryName .Category .SubCategory) }}" src = "{{$.URL.Parse (printf " / img / torrents / sukebei / % s % s . png " . Category . SubCategory ) } } " title = "{{ call $.T (CategoryName .Category .SubCategory) }}" >
2017-05-15 11:08:17 +02:00
{{ else }}
2017-06-05 00:43:23 +02:00
< img alt = "{{ call $.T (CategoryName .Category .SubCategory) }}" src = "{{$.URL.Parse (printf " / img / torrents / % s . png " . SubCategory ) } } " title = "{{ call $.T (CategoryName .Category .SubCategory) }}" >
2017-05-15 11:08:17 +02:00
{{ end}}
2017-05-05 10:12:29 +02:00
< / a >
< / 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-05-27 03:54:41 +02:00
< a href = "{{genRoute " view_torrent " " id " ( print . 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-04 02:28:33 +02:00
{{ if gt (len .Comments) 0 }}
2017-06-05 21:11:28 +02:00
< 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-05-25 14:29:39 +02:00
< a href = "{{.Magnet}}" title = "{{ call $.T " magnet_link " } } " >
2017-05-24 08:57:48 +02:00
< div class = "magnet-icon" > < / div >
2017-05-05 10:12:29 +02:00
< / a >
2017-05-09 16:42:12 +02:00
{{if ne .TorrentLink ""}}
2017-05-25 14:29:39 +02:00
< a href = "{{.TorrentLink}}" title = "{{ call $.T " torrent_file " } } " >
2017-05-24 08:57:48 +02:00
< div class = "download-icon" > < / 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" >
{{ fileSize .Filesize $.T }}
< / td >
{{if .LastScrape.IsZero}}
< td class = "home-td hide-xs" colspan = "3" > {{call $.T "unknown"}}< / td >
{{else}}
< 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 >
{{end}}
< 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-06-02 04:51:44 +02:00
{{ if HasAdmin $.User }}
< div class = "modtools" >
< button id = "show_actions" data-toggle-text = "{{call $.T " hide_mod_tools " } } " > {{call $.T "show_mod_tools"}}< / button >
< span class = "actions" >
< span class = "btn-group" >
< select class = "cb_action" name = "category_id" >
< option value = "" > {{call $.T "category"}}< / option >
{{ range $name_cat, $id_cat := (GetCategories true) }}
< option value = "{{ $id_cat }}" > {{call $.T $name_cat }}< / option >
{{ end }}
< / select >
2017-06-02 15:42:53 +02:00
< input class = "cb_action" type = "text" name = "owner_id" placeholder = "{{ call $.T " owner_id_placeholder " } } " >
2017-06-02 04:51:44 +02:00
< select class = "cb_action" name = "status_id" >
< option value = "" > {{call $.T "torrent_status"}}< / option >
< option value = "5" > {{ call $.T "torrent_status_blocked" }}< / option >
< option value = "1" > {{call $.T "torrent_status_normal"}}< / option >
< option value = "2" > {{call $.T "torrent_status_remake"}}< / option >
< option value = "3" > {{call $.T "trusted"}}< / option >
< option value = "4" > A+< / option >
< / select >
< button class = "cb_action" id = "edit" > {{ call $.T "edit" }}< / button >
< / span >
< span class = "btn-group" >
< button class = "cb_action" id = "lock_delete" > {{ call $.T "lock_delete" }}< / button >
< button class = "cb_action" id = "delete" > {{ call $.T "delete" }}< / button >
< / span >
< span class = "btn-group" >
< button class = "cb_submit" id = "modal_active" > {{ call $.T "save_changes" }}< / button >
< / 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 >
< h2 > {{ call $.T "following_changes_applied" }}< / h2 >
< / div >
< div class = "modal-body" >
< h3 > {{ call $.T "changes_in_following_order" }}< / h3 >
< 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 >
< h2 > {{ call $.T "edit_changes" }}< / h2 >
< div class = "edit_changes" > < / div >
< h2 > {{ call $.T "delete_changes" }}< / h2 >
< div class = "delete_changes" > < / div >
< / div >
< div class = "modal-footer" >
< span > < button id = "confirm_changes" onclick = "TorrentsMod.ApplyChanges();" > {{ call $.T "yes"}}< / button >
< button class = "close" onclick = "Modal.CloseActive();" > {{ call $.T "no"}}< / button > < / span >
< h3 > {{ call $.T "are_you_sure" }} < / h3 >
< / div >
< / div >
< / div >
{{end}}
2017-05-05 13:06:41 +02:00
{{end}}
2017-05-30 00:28:21 +02:00
{{ define "footer_js"}}
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / template . js " } } " > < / script >
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / query . js " } } " > < / script >
2017-06-02 04:51:44 +02:00
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / modal . js " } } " > < / script >
2017-05-30 00:28:21 +02:00
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / torrents . js " } } " > < / script >
2017-06-02 04:51:44 +02:00
{{ if HasAdmin $.User }}
2017-06-02 15:42:53 +02:00
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / translation . js " } } " > < / script >
2017-06-02 04:51:44 +02:00
< script type = "text/javascript" src = "{{ $.URL.Parse " / js / torrentsMod . js " } } " > < / script >
< script type = "text/javascript" >
2017-06-02 15:42:53 +02:00
// We add translations string
T.Add({
try_new_attempt: "{{ call $.T "try_new_attempt" }}",
query_is_broken: "{{ call $.T "query_is_broken" }}",
query_executed_success: "{{ call $.T "query_executed_success" }}",
all_operations_done: "{{ call $.T "all_operations_done" }}",
refreshing_in: "{{ call $.T "refreshing_in" }}",
delete_reports_with_torrents: "{{ call $.T "delete_reports_with_torrents" }}",
with_st: "{{ call $.T "with_st" }}",
and_reports: "{{ call $.T "and_reports" }}",
reports: "{{ call $.T "reports" }}",
lock: "{{ call $.T "lock" }}",
status_js: "{{ call $.T "status_js" }}",
owner_id_js: "{{ call $.T "owner_id_js" }}",
category_js: "{{ call $.T "category_js" }}",
no_changes: "{{ call $.T "no_changes" }}",
query_nb: "{{ call $.T "query_nb" }}"
});
// 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 >
{{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" >
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-06-02 15:42:53 +02:00
{{ if HasAdmin $.User }}
"< 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-05-30 00:28:21 +02:00
"< td class = \"tr-cat home-td \ " > "+
"< a href = \"{{$.URL.Parse " / search ? c = " }}" + torrent . category + " _ " + torrent . sub_category + " \ " > "+
{{ if Sukebei }}
"< img src = \"{{ $ . URL . Parse " / img / torrents / sukebei / " } } " + torrent . category + torrent . sub_category + " . png \ " title = \""+ torrent . CategoryName + " \ " > "+
{{ else }}
"< img src = \"{{ $ . URL . Parse " / img / torrents / " } } " + torrent . sub_category + " . png \ " title = \""+ torrent . CategoryName + " \ " > "+
{{ end }}
"< / a > "+
"< / 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 \ " > "+
((torrent.comments.length > 0) ? "< i class = \"comment-icon\" title = \"{{ call $ . T " comments " } } \ " > " + torrent.comments.length + "< / i > " : "")+
"< / td > "+
2017-05-30 00:28:21 +02:00
"< td class = \"tr-links home-td \ " > "+
"< a href = \""+torrent.magnet + " \ " title = \"{{ call $ . T " magnet_link " } } \ " > "+
"< div class = \"magnet-icon\" > < / div > "+
2017-05-30 15:19:45 +02:00
"< / a > "+(torrent.torrent != "" ? " < a href = \""+torrent.torrent+"\" title = \"{{ call $ . T " torrent_file " } } \ " > < div class = \"download-icon\" > < / 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-02 04:51:44 +02:00
Torrents.LastID = {{ lastID .URL .Models }};
if (Torrents.LastID > 0) Torrents.CanRefresh = true;
2017-05-30 00:28:21 +02:00
< / script >
{{end}}