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

1961 commits

Auteur SHA1 Message Date
mitki 94ecaea291 [TL] Updated pt-br 2017-05-29 21:53:31 -03:00
mitki 16b84dbe6a [TL] Updated en-us 2017-05-29 21:53:14 -03:00
mitki ef2b7f2894 translation support 2017-05-29 21:52:49 -03:00
Mitki 765077864a Update pt-br.all.json (#841)
* Update pt-br.all.json

* Update pt-br.all.json
2017-05-30 09:17:26 +10:00
akuma06 479de0eaf6 Merge pull request #840 from NyaaPantsu/csrf-secure
Csrf secure Exclusion
2017-05-30 01:17:08 +02:00
kipukun 6b5db0f14d Added mod delete and edit buttons to view (#838) 2017-05-30 09:15:50 +10:00
akuma06 55867720cb Forgot that they also login through the login form
So no CSRF protection for login :/
2017-05-30 00:22:23 +02:00
akuma06 db58c2bf02 Merge branch 'csrf-secure' of https://github.com/NyaaPantsu/nyaa into csrf-secure 2017-05-30 00:18:47 +02:00
akuma06 ad7439283c CSRF Exclusion
As per suggestion of @yiiTT, CSRF is limited on users login,
registration, profile edit, comments post, torrent edit.
Uploads are not yet CSRF protected because api upload can't be used for
that
2017-05-30 00:18:43 +02:00
akuma06 517b59b02f Merge pull request #837 from NyaaPantsu/csrf-secure
CSRF Support + better key for context
2017-05-29 22:15:07 +02:00
akuma06 d5ad9618ac Update view_torrent_handler.go 2017-05-29 17:44:11 +02:00
akuma06 bd59f3afd1 Forgot to move Token config
Tokens config are now in config/tokens.go
2017-05-29 17:39:13 +02:00
akuma06 d286832090 Merge pull request #834 from Kiloutre/patch-2
Apply max-width/height to all description images
2017-05-29 17:28:12 +02:00
akuma06 3ec367a759 CSRF Support + better key for context
* Added new dep: gorilla/csrf
* CSRF field in forms
* CSRF variable in commontemplatevariables
* New key for messages and user context

Please change EnableSecureCSRF to false when testing locally and don't
merge config/env.go with the changes
2017-05-29 17:07:18 +02:00
kilo 9392c99f0f Apply max-width/height to all description images
Max-width & max-height only applied to images inside another element in the torrent description. It's fine because description images seem to always be in a \<p\>\<p/\>, but what if they weren't?
The max-width & max-height now apply to all images in the torrent description (.torrent-info-box img) instead of one in another element (.torrent-info-box > * > img), that way no image may ever go outside the bounds! Not on it's own at least.
2017-05-29 16:00:01 +02:00
John Smith 61141a1fcf
Exhaustive whitespace trimming 2017-05-29 23:43:27 +10:00
akuma06 c570557477 Added Theme field in user settings 2017-05-29 15:15:04 +02:00
akuma06 a7d621f048 Merge pull request #820 from Duckbitts/dev
Fixing the mascot
2017-05-29 15:00:28 +02:00
akuma06 080720391f Fixing notification variable 2017-05-29 15:00:08 +02:00
akuma06 33707e965c Merge branch 'dev' into dev 2017-05-29 14:57:55 +02:00
akuma06 a167ab1cc6 Merge pull request #832 from Myrmece/patch-2
Updated translation.
2017-05-29 14:56:08 +02:00
Myrmece 507bcb1cfa Updated translation. 2017-05-29 14:32:21 +02:00
Duckbitts 89a19d909f Update main.css 2017-05-29 15:11:00 +03:00
Duckbitts 81a16b1a39 Update index.html 2017-05-29 15:10:20 +03:00
akuma06 6bf2e38204 Forgot torrent report list
More fix for #830
2017-05-29 13:52:01 +02:00
akuma06 cef60c476a fix for torrent report
should fix #830
2017-05-29 13:49:03 +02:00
Eliot Whalan 5983d442fa
Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-05-29 21:25:52 +10:00
Eliot Whalan 8cf57ad791
set max comment size 2017-05-29 21:25:36 +10:00
akuma06 6c55c02675 Merge pull request #829 from NyaaPantsu/fix-hidden-option
Anon users should not be able to see it
2017-05-29 13:24:37 +02:00
akuma06 ae38aee9f5 Merge pull request #828 from MMP0/patch-11
Update translations in public settings
2017-05-29 13:24:24 +02:00
akuma06 41f7f678cc Anon users should not be able to see it
Instead of checking that user exist, checking that user id > 0
2017-05-29 13:23:47 +02:00
MMP0 21c5acd43d Update ja-jp.all.json 2017-05-29 20:21:12 +09:00
MMP0 f01bb77926 Update ja-jp.all.json 2017-05-29 20:19:51 +09:00
akuma06 30e96931d1 Just added also the mark_as_hidden option
Took the opportunity that you were editing them to add it ;)
2017-05-29 13:18:17 +02:00
MMP0 c6b2f65270 Update ja-jp.all.json 2017-05-29 20:16:37 +09:00
akuma06 79a6ee3747 Merge pull request #827 from NyaaPantsu/k
Keeping Mascot hidden
2017-05-29 13:15:57 +02:00
MMP0 85c8d72369 Update en-us.all.json 2017-05-29 20:15:57 +09:00
MMP0 da896a65a7 Update public_settings.html 2017-05-29 20:13:27 +09:00
akuma06 14a7303f25 Merge pull request #826 from NyaaPantsu/fix-filelist-style
Fix filelist style
2017-05-29 13:12:54 +02:00
akuma06 dd03550c66 Keeping Mascot hidden
Should fix #808
* Mascot hide is kept while navigating with a localstorage value
2017-05-29 13:12:05 +02:00
akuma06 98c60f39a2 Fix for long comments (#825)
Just added word-break, padding-right and a justified text for comments.
2017-05-29 20:50:16 +10:00
akuma06 f5f240f2d6 A litle fix when there is no file found in torrents 2017-05-29 12:49:26 +02:00
akuma06 4d7453dfb9 Fix for long comments
Just added word-break, padding-right and a justified text for comments.
2017-05-29 12:39:07 +02:00
John Smith d2edca62de
network/graceful.go made redundant
The call to http.Server.Shutdown in main.go that happens on os.Interrupt
closes listeners. Remove racey code and format network/network.go.

Running Listener.Accept in a loop is not necessary as the stdlib expects
SA_RESTART to be set for signal handlers.
2017-05-29 19:19:36 +10:00
Eliot Whalan 7cb69b5234
Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-05-29 16:29:53 +10:00
John Smith 0bdd915f9a
Let net/http gracefully close
http.Server.Shutdown gracefully closes listeners/clients, we do not have to
do it ourselves. Making util/signals accept func() instead of io.Closer
allowed for the removal of network/closer.go and util/signals/closers.go.
2017-05-29 16:29:34 +10:00
John Smith 0159579611
Copy Programmatically 2017-05-29 16:29:22 +10:00
kipukun 70bf313353 sukebei but it isn't tested WOO (#807)
* sukebei but it isn't tested WOO

* actually make it work lmao
2017-05-29 16:23:46 +10:00
akuma06 bdae58cc6a Merge pull request #823 from NyaaPantsu/email-regex-improvement
Should work now for emails
2017-05-29 01:54:26 +02:00
Eliot Whalan 5bcda5c9a1
Revert "Add playbook to download /build latest nyaa, fix k-on elasticsearch issue (#821)"
This reverts commit da1e323825.
2017-05-29 08:24:04 +10:00