Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

1060 commits

Auteur SHA1 Message Date
kilo
e47cd66acd
Update view.jet.html 2017-10-31 03:38:47 +01:00
kilo
74ac798ee8
Update view.jet.html 2017-10-31 03:31:41 +01:00
kilo
4385315a0f
Update upload.jet.html 2017-10-31 03:20:32 +01:00
kilo
3959a86ec0
fix travis 2017-10-31 02:21:47 +01:00
kilo
21ce72555b
Update view.jet.html 2017-10-31 02:13:40 +01:00
kilo
6c3687c777
Update view.jet.html 2017-10-31 02:12:23 +01:00
kilo
165d7a70ff
Update torrentlist.jet.html 2017-10-31 02:10:21 +01:00
kilo
9618f4f929
Update torrentlist.jet.html 2017-10-31 02:04:54 +01:00
kilo
a9a30d82dc
Update torrents.jet.html 2017-10-31 01:40:30 +01:00
kilo
95a1600f7e
Update template.go 2017-10-31 01:38:47 +01:00
kilo
f81fb68e95
Update listing.jet.html 2017-10-31 01:37:32 +01:00
kilo
45e8afe989
Update template_functions.go 2017-10-31 01:37:24 +01:00
kilo
bcb2fe52ca
Update view.jet.html 2017-10-31 01:37:07 +01:00
kilo
97b8171bd9
Update template.go 2017-10-31 01:34:23 +01:00
kilo
9b2b05b24a
Update template_test.go 2017-10-31 01:34:13 +01:00
kilo
7667054983
Update profile.jet.html 2017-10-31 01:33:13 +01:00
kilo
283d0f1cf4
Update profile.jet.html 2017-10-31 01:04:13 +01:00
kilo
9e53472cc2
Add files via upload 2017-10-31 00:47:11 +01:00
kilo
a68e6b9e8c
Update profile.jet.html 2017-10-29 20:33:43 +01:00
kilo
8cfcf1f356
Update view.jet.html 2017-10-29 20:32:04 +01:00
kilo
a75da8d59f
Update view.jet.html 2017-10-29 20:27:52 +01:00
kilo
c2df20269e
Update profile.jet.html 2017-10-29 19:58:23 +01:00
kilo
12c5e2e76a
Update view.jet.html 2017-10-29 19:54:30 +01:00
kilo
1f67f36831
Update notifications.jet.html 2017-10-29 19:28:20 +01:00
kilo
0b893ba8c8
Update index.jet.html 2017-10-29 05:04:30 +01:00
kilo
190cd1d113
Update torrent_report.jet.html 2017-10-29 05:01:45 +01:00
kilo
23015426d8
Update view.jet.html 2017-10-29 04:53:49 +01:00
kilo
0d03cd98d8
Update template_test.go 2017-10-29 04:46:14 +01:00
kilo
70f9abb562
fix 2017-10-29 03:11:49 +01:00
kilo
dfb3c2b869
Update notifications.jet.html 2017-10-29 01:59:03 +02:00
kilo
0daa34f31f
Update badgemenu.jet.html 2017-10-29 01:22:14 +02:00
kilo
0174f8f1af
Update notifications.jet.html 2017-10-29 01:07:33 +02:00
kilo
2201517574
Update template_test.go 2017-10-29 01:02:39 +02:00
kilo
522cd0f5bb
redesign of notification, html 2017-10-28 22:50:39 +02:00
kilo
530fd0555a
Sukebei colors for classic theme, subscribe link on torrent pages (#1696)
* Add files via upload

* change url of files

* Delete topbar.png

* Delete dl-link.png

* Add files via upload

* sukebei colors for classic theme

* stylisation for follow link on torrents

* Update main.css

* Update tomorrow.css

* Update follow.go

* Update profile.jet.html

* Update user.go

* Update view.jet.html

* Update view.go

* Update view.jet.html

* Update view.jet.html

* Update tomorrow.css
2017-10-28 21:50:32 +02:00
kilo
33964e017d Comment date show full date instead of short one (#1695) 2017-10-28 18:52:18 +02:00
kilo
dd94402f04
Fixes & improvements (#1684)
* Update main.css

* Update torrent_item.jet.html

* Update main.js

* Update torrent_item.jet.html

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update template_functions_test.go

* Update template_functions_test.go

* Update user.go

* Update profile.jet.html

* Update view.jet.html

* Update template_functions.go

* Update en-us.all.json

* Add files via upload

* Update CHANGELOG.md

* Update main.css

* Update template_functions.go

* Add files via upload

* Update en-us.all.json

* Update template_functions_test.go

* Update view.jet.html

* Update main.css

* Update ja-jp.all.json

* Update main.css

* Update edit.jet.html

* Update main.css

* Update tomorrow.css

* Update ja-jp.all.json

* Update main.css

* Update view.jet.html

* Update comment.go

* Update create.go

* Update classic.css

* Make GetOldNavFromRequest return true by default

* Update view.jet.html

* Force torrent date in UTC+0 timezone during display

* ditto

* Update ja-jp.all.json

* Update oldNav.jet.html

* Update structs.go

* Update default_config.yml

* Update torrent.go

* Update stats.go

* Update stats.go

* Update user.go

* Update template_functions.go

* Update template_functions_test.go

* Update torrent.go

* Update comment.go

* Update view.jet.html

* Update main.css

* Update user.go

* Update template_functions.go

* Update profile.jet.html

* Update main.js
2017-10-28 18:28:59 +02:00
MMP0
901c933632 Improve date formatting (#1693)
* Update main.js

* Update base.jet.html

* Update CHANGELOG.md

* Update en-us.all.json

* Update ja-jp.all.json

* Update main.js
2017-10-28 17:01:56 +02:00
akuma06
b2b48f61b0 Torrent Generation on not found error (#1600)
* [WIP] Torrent Generation on not found error
As asked in #1517, it allows on-the-fly torrent generation. Since it uses magnet links, it needs some time to connect to peers. So it can't be instant generation, we need the user to wait and try after a minute at least.

* Replace Fatal by simple error

* attempt at fixing travis

* del

* Add Anacrolyx dependency

* Add back difflib

* Remove .torrent suffix in the url example

* Add some explanations when file missing page shown

* Ignore downloads directory

* Either use cache (third-party site) or own download directory

* Wrong import

* If there is an error then it means we aren't generating a torrent file

May it be "torrent not found" or "We do not store torrent files" which are the two only existing errors for this page

* hash is never empty

* TorrentLink may be empty at times

So we add a /download/:hash link if it is

* Update README.md

* Made a mistake here, need to check if false

* Update en-us.all.json

* Update CHANGELOG.md

* Torrent file generation can be triggered by click on button if JS enabled

* Update download.go

* Update download.go

* Use c.JSON instead of text/template

* Return to default behavior if we don't generate the file

* Don't do the query if returned to default behavior

* Add "Could not generate torrent file" error

* Fix JS condition & lower delay until button updates

* Start download automatically once torrent file is generated

* Fix torrentFileExists() constantly returning false if external torrent download URL

* torrent-view-data is two tables instead of one

This allows the removal of useless things without any problem (e.g Website link), but also a better responsibe design since the previous one separated stats after a certain res looking very wonky

* CSS changes to go along

* Remove useless <b></b>

* Update main.css

* In torrentFileExists, check if filestorage path exists instead of looking at the domain in torrent link

When checking if the file is stored on another server i used to simply check if the domain name was inside the torrent link, but we can straight up check for filestorage length

* Fix JS of on-demand stat fetching

* ScrapeAge variable accessible through view.jet.html

Contains last scraped time in hours, is at -1 is torrent has never been scraped
Stats will get updated if it's either at -1 or above 1460 (2 months old)

* Refresh stats if older than two months OR unknown and older than 24h

Show last scraped date even if stats are unknown

* Add StatsObsolete variable to torrent

Indicating if:
- They can be shown
- They need to be updated

* Update scraped data even if Unknown, prevent users from trying to fetch stats every seconds

* Torrent file stored locally by default

* no need to do all of that if no filestorage

* fix filestorage path

* Fix torrent download button stuck on "Generating torrent file" at rare times

* fix some css rules that didn't work on IE

* Fix panic error

Seems like this error is a known bug from  anacrolyx torrent https://github.com/anacrolix/torrent/issues/83

To prevent it, I'm creating a single client and modifying the socket.go to make it not raise a panic but a simple error log.
2017-10-21 09:40:43 +02:00
akuma06
33c83030b9 Fix Api documetation (#1685)
* Fix Api documetation

Fix #1682
* Remove unused SubCategory field from struct TorrentRequest
* Change `category` argument in documentation to correct `c` (same key as the one in Search)

* Apidoc generation

* Remove SubCategory from template_test's torrentValidator

* Update template_test.go
2017-10-18 22:27:55 +02:00
kilo
40b90f1739 Update index_site.jet.html (#1681)
* Update index_site.jet.html

* Update classic.css
2017-10-18 19:38:21 +10:00
kilo
8a8137fd58 Make old navigation use user torrent search route when needed (#1678)
* Update template_functions.go

* Update listing.jet.html

* Update oldNav.jet.html

* Update template_functions_test.go

* Update template_functions_test.go

* Update view.jet.html

* Update torrent.go
2017-10-18 05:46:58 +02:00
kilo
c791e3bc08 Show refine constantly in no results page (#1675)
* Update search.jet.html

* show refine constantly in "no results" page

* no results page is now a box

* remove useless class
2017-10-16 19:52:36 +10:00
kilo
a4ea57e771 Update last-scraped date on view even if stats.go return unknown stats & other things (#1673)
* Update view.jet.html

* reduce the time limit of how fast stats.go is supposed to be called

* Update router.go

* add subcategory display in old navigation

* css to go along

* remove useless variable

* Update oldNav.jet.html

* fix travis

* fix missing css line that had user search input & link way wider than they should've been

* "See more torrents from" now make use of user torrent search route

* remove useless variable

* use stat obsolete variable in listing instead of checking the date
2017-10-16 17:03:18 +10:00
kilo
bc580942e7 fix display of user search in firefox & IE (#1669)
* fix display of user search in firefox & IE

* remove '

* fix display of user search's search button on user search page search search search search

* remove '
2017-10-15 14:55:22 +02:00
kilo
1ec2a77974 fix wrong translation string being used on user edit page for mods & improve stats.go (#1665)
* fix wrong translation string being used on user edit page for mods

* fix css rule that did not apply

* fix error in stats.go

* stats.go scrapes default trackers if torrent has no tracker

* remove useless thing

* change behavior of right arrow in page list (now goes to latest page)

* fix { too much

* Update view.jet.html

* Update view.jet.html

* pin user search input & link at the bottom of user page

* HTML to go along
2017-10-15 13:18:57 +02:00
kilo
61d1aa4195 Different color for cookie warning on sukebei (g.css) & copy pasting improvements from another PR (#1660)
* Different color for cookie warning on sukebei

* Copy paste improvement from another PR since it's going to take time until it's complete

* ditto

* ditto

* ditto

* Update main.css

* JS fallback for /settings page on mirrors

* Update main.js

* Update settings.jet.html
2017-10-15 15:31:05 +10:00
akuma06
d3e50b8ffd Fix User delete button (#1662)
* Fix User delete button

Fix #1652
This bug comes from the fact that @kiloutre edited how the form behave and instead of a GET request, do a POST one. However every POST request not in /api or /mod need a CSRF Token to work.

* Update userlist.jet.html

* Update index.jet.html
2017-10-15 01:34:45 +02:00
kilo
ba058ec3e1 Prevent session cookie from existing on .pantsu.cat & other things (#1658)
* Update user.go

* Update main.css

* add comment

* fix JS function that did not  behave as intended

* Update classic.css

* Update classic.css

* Update search.jet.html

* Update en-us.all.json

* Update site.jet.html

* Update router.go

* Update search.go

* Update helpers.go

* Update search.go
2017-10-14 11:16:34 +10:00
kilo
3c06b0fc5c Small design fixes (#1657)
* Update main.css

* Update main.css

* fix inline display of delete button

* Update main.css

* Update torrentlist.jet.html

* Update torrent_report.jet.html

* Update torrentlist.jet.html

* Update announcements.jet.html

* Update announcements.jet.html

* Update user.go

* Update tomorrow.css

* Update tomorrow.css
2017-10-12 21:13:04 +02:00