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

390 commits

Auteur SHA1 Message Date
akuma06
c7d3c49daa fix 2017-05-21 01:22:07 +02:00
akuma06
798ec9a3a8 Merge remote-tracking branch 'refs/remotes/origin/dev' into notifications
# Conflicts:
#	templates/_badgemenu.html
2017-05-21 01:21:56 +02:00
akuma06
5f60970eb9 Finished 2017-05-21 01:06:40 +02:00
Ramon Dantas
1968d2ae54 Move translation func to template variables (#652)
* Add T field to template variables

* Remove languages.SetTranslationFromRequest

* Add Tfunc on handlers

* Remove T and Ts from template_functions

* Update templates

Change the templates to use the local Tfunc, instead of the global one.
Also changed the signature of the fields on template_variables.go, so that
they return a template.HTML to avoid escaping problems.

* Remove unnecessary variable
2017-05-21 08:38:28 +10:00
akuma06
0390fc5215 Mostly done 2017-05-21 00:02:57 +02:00
akuma06
4cbbb95e4f Notification for Users (WIP) 2017-05-20 20:53:05 +02:00
akuma06
665c6e3116 added ircs support 2017-05-20 18:40:20 +02:00
akuma06
fff53fcb5b Website link are mandatory 2017-05-20 17:16:48 +02:00
akuma06
f09b8bcae7 Modified info string 2017-05-20 17:13:43 +02:00
akuma06
3ac73daa77 add irc support 2017-05-20 17:10:28 +02:00
akuma06
42a2224336 Merge branch 'dev' into torrent-weblink 2017-05-20 17:04:33 +02:00
akuma06
27db98dfc2 Forgot to add in model insert 2017-05-20 17:02:34 +02:00
akuma06
cf478a4235 Add Torrent WebLink + fixes
Simplifying messages util (no need to add everytime r)
2017-05-20 17:01:13 +02:00
sfan5
4c24318cb3 More sukebei fixes (#649)
* Remove useless .Table() from db usage

This is handled via TableName() already

* Optimization: omit file-list fetching for old torrents

* Use seperate tables for reports & files on sukebei

* Fix invalid pages in nav if <5 pages total
2017-05-21 00:26:22 +10:00
akuma06
da948038d1 Fix router merge 2017-05-20 14:12:36 +02:00
akuma06
ffbd0d4851 Fix 2 2017-05-20 14:05:26 +02:00
akuma06
d38c02f802 Fix 2017-05-20 14:03:59 +02:00
akuma06
369c9151f1 Merge remote-tracking branch 'refs/remotes/origin/dev' into multi-action-torrents-mod
# Conflicts:
#	router/modpanel.go
#	router/router.go
#	service/torrent/torrent.go
2017-05-20 13:58:37 +02:00
akuma06
0d5e2abf7f Added multi action on torrents 2017-05-20 13:45:15 +02:00
sfan5
a3fa6df938 Remove bugs (#643)
* Fix S/L/D columns wasting huge amounts of space

Partially reverts 0c9cdfa8bf.

* Move last scrape below seed-bar

Also fixes the very misleading indentation

* Show category name on view page too

* Fix fucked up login page (fixes #640)

* Fix empty page on login w/o pass (fixes #634)

* Fix incorrectly colored error text in day mode

* Better readable footer in night mode

* Prepare having old uploader names on sukebei and various fixes for sukebei

* Different HTML title for sukebei
2017-05-20 20:45:27 +10:00
tomleb
7eee47b0d3 Fix bug, remove literals (#629)
* Use ModeratorDir variable

* Rename cookieHelper to cookie_helper for consistency

* Use named constant instead of literals

* Fix ability to upload when uploads are disabled

The old code let people upload under the right conditions when uploads
were disabled. (ie: User is banned and config.AdminAreStillAllowedTo is
false)

* Increase timeout (fixes #517)

* Fix inconsistent indentation *.{js, css} (fix #583)

* Fix negative page

Temporary fix. The issue was that going to a negative page caused the
sql query to have a negative offset. This caused an error in the
database query.

We need to cleanup this code, but this will work for now.

* Fix wrong PG_DATA directory due to upgrade to 9.6

* Add server status link to FAQ

* Fix failing tests

* Clarify group_vars/all and hosts doc

* Add a wrapper to protect /mod route

* Fix login page not showing form errors
2017-05-20 09:10:16 +10:00
Ramon Dantas
0f5a349c01 Add RSS feed to User Profile (issue #197) (#631)
Uses a similar syntax to the normal /feed URL, except it's added
to the /user/id/username URL.
2017-05-20 09:09:09 +10:00
moose65468
a2e4fab550 Add tooltips to category images (#627)
* Added tooltips to category images

* removed line 213
2017-05-20 09:08:54 +10:00
tomleb
babf0a37f0 Cleanups and fixes (#623)
* Keep naming consistent

* Remove execute bit from files

* Default to DefaultLanguage (without passing it to the func)

* Remove commented code

* Use Content-Type to get language json

* Lines of 400 characters is dumb

* Update new repo in README

* Remove useless script since we fallback to a defaultlang

* Fix fallback language panic

* Fix uninitialized MaxPerPage when not in querystr

The issue was that the req.MaxPerPage was not set (default to 0) when
the query string didn't include "max". This makes the server query the
whole db since the resulting limit is 0.

* Fix creating empty torrents (only worked once)

* Lines of 400 characters is still dumb
2017-05-19 12:55:59 +10:00
Akatsuki-Ousawa
e86627abed Update uploadHandler.go 2017-05-18 22:14:14 +02:00
Akatsuki-Ousawa
bba5faa58a Update apiHandler.go 2017-05-18 22:13:00 +02:00
Akatsuki-Ousawa
0ee0ef6fd9 Update apiHandler.go 2017-05-18 15:37:44 +02:00
Akatsuki-Ousawa
bc3de070af Update uploadHandler.go 2017-05-18 14:29:58 +02:00
Akatsuki-Ousawa
2f2d03667c Update apiHandler.go 2017-05-18 14:27:13 +02:00
akuma06
a511b901e9 Merge pull request #602 from MMP0/patch-19
Small changes and Fix errors
2017-05-18 03:12:27 +02:00
akuma06
22c87a6bbf fix handlers error 2017-05-18 03:09:23 +02:00
akuma06
2d87cc891a Update databaseDumpHandler.go 2017-05-18 03:04:18 +02:00
akuma06
2c99f46453 Update databaseDumpHandler.go 2017-05-18 03:00:51 +02:00
MMP0
c4c53a6c61 Fix error 2017-05-18 09:55:23 +09:00
tomleb
9c6c66d0e9 Don't make path configurable, detect empty directory 2017-05-17 19:05:58 -04:00
tomleb
44d75f506d Add dumps view 2017-05-17 19:05:58 -04:00
SpamNeko
6fc5423166 Fix default sorting UI state (#598) 2017-05-18 09:03:11 +10:00
sfan5
1be4ec1a94 Use JS date formatting for comments too 2017-05-17 16:07:32 +02:00
Ramon Dantas
a64c3c5b71 Minor fixes. (#575)
* Sort Comments by Date and Files by Name on viewTorrent

* Make comments start at 1, not 0.
2017-05-17 21:16:40 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
ElegantMonkey
9f9b45eb71 Add pagination to RSS handler
Make it behave more like the search handler.
2017-05-16 18:32:41 -03:00
Eliot Whalan
4e61605a30 Merge branch 'dev' 2017-05-16 13:34:21 +10:00
Ramon Dantas
f351c2b047 Store torrent FileList info as bencoded data. (#530)
Use this instead of joining with forward-slashes because it's possible
that a torrent uses "foo/bar" as a filename or part of the directory list.
2017-05-16 07:45:47 +10:00
sfan5
cb455113cc Various fixes (#521)
* Re-add old uploader name to view page

* Update zh-CN translation (fixes #519)

* Nicer text boxes in night mode (closes #515)

* Fix max results defaulting to 5 (fixes #488)

* Add link back to nyaa on sukebei (fixes #255 and #437)

* Fix visual bug with pt-BR translation (fixes #427)
2017-05-15 21:55:16 +10:00
Eliot Whalan
a5e81b2d8c Fix uploads 2017-05-15 19:50:39 +10:00
Eliot Whalan
cf4e482046 Get sukebei working 2017-05-15 19:08:17 +10:00
ElegantMonkey
df2c9bc2f7 Fix conflicts 2017-05-14 21:19:29 -03:00
SpamNeko
0c9cdfa8bf Sorting arrows on table headers (#504)
* Sorting arrows on table headers

* Better arrows and seperate S/L/D columns
2017-05-14 19:01:04 -05:00
Atvaark
cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
ElegantMonkey
2ab4d4ad9e Fix conflict on translation 2017-05-14 12:45:07 -03:00
ElegantMonkey
720c27e38f Get FileList of new uploaded .torrent files 2017-05-14 12:28:48 -03:00
Eliot Whalan
9261847a93 Merge branch 'dev' of https://github.com/ewhal/nyaa into dev 2017-05-14 23:26:25 +10:00
SpamNeko
145dc40cd8 Make table header sorting links point to /search always so the work on home 2017-05-14 13:44:39 +01:00
Eliot Whalan
ec80ada958 Fix table sorting 2017-05-14 22:30:09 +10:00
sfan5
2827362b54 Fully fix modpanel 2017-05-14 13:23:27 +02:00
sfan5
f1aa52e618 Cleanup usage of now removed HideAdvancedSearch 2017-05-14 13:05:18 +02:00
sfan5
c60a8635fc Fix search in modpanel (@SpamNeko broke it) 2017-05-14 13:01:59 +02:00
akuma06
8dd9f59cf5 Merge pull request #436 from sfan5/treassign
Modpanel: Torrent Reassigning
2017-05-14 00:29:44 +02:00
SpamNeko
dc32f041e1 Add sorting to table headers, delet advanced search 2017-05-13 18:14:51 +01:00
sfan5
b24e31a7dc Check assign-to user for existence beforehand 2017-05-13 17:36:50 +02:00
sfan5
c0be570e54 Torrent Reassign feature for modpanel 2017-05-13 17:29:21 +02:00
PantsuDev
0ae488e7eb Merge branch 'dev' into dev 2017-05-13 12:24:55 +10:00
PantsuDev
44b327e1a3 Merge pull request #395 from sfan5/searchperf
(Search) performance
2017-05-13 12:24:03 +10:00
ElegantMonkey
5dcd3892f4 Add dropdown to the bottom of the page (needs JS) 2017-05-12 21:01:17 -03:00
sfan5
00bb382cdb Modpanel stuff (#401)
* Fix table on modpanel index

* Fix actions on torrent report list page

* Fix error reporting on modpanel templates

* Convenience functions for modpanel

Link to view page primarily and to edit page as a seperate link

* Missing confirm before torrent deletion

* Add edit button directly onto view page
2017-05-12 17:31:27 -05:00
ElegantMonkey
7808615c6a Add route and template files 2017-05-12 19:28:56 -03:00
ElegantMonkey
dfd9caeb31 Add language selector without login 2017-05-12 19:17:34 -03:00
sfan5
b2581f549b Display human-readable report reason in modpanel
Also fixes the "list all torrent reports" subpage
2017-05-12 20:43:38 +02:00
sfan5
5cb672b06a Stop RSS from being so slow 2017-05-12 17:54:08 +02:00
sfan5
38f23a3d7f Use ts_query on Postgres for performance reasons
Untested.
2017-05-12 17:41:26 +02:00
PantsuDev
dc89495b65 Merge pull request #394 from tomleb/dev
Fix dereference wrong error
2017-05-13 01:24:23 +10:00
tomleb
6aa4e8b960 Fix dereference wrong error 2017-05-12 10:29:48 -04:00
PantsuDev
ac92ddfeba Merge pull request #391 from sfan5/memes
Fixes & Features
2017-05-12 20:25:05 +10:00
sfan5
629dfde937 Fix one URL escape too much in RSS link 2017-05-12 12:08:38 +02:00
sfan5
6b341c7b03 No captchas for trusted users or admins, closes #330 2017-05-12 12:05:36 +02:00
ayame-git
cf13efe3fe unborked 2017-05-12 05:21:40 +03:00
ayame-git
d5370705c0 converts hash to uppercase 2017-05-12 04:28:00 +03:00
ayame-git
af2c47c2f2 Merge branch 'master' of github.com:ewhal/nyaa into api 2017-05-12 00:59:35 +03:00
ayame-git
d94f8102d1 convert base32 hash to base16 2017-05-12 00:59:00 +03:00
sfan5
b6b2d836c0 Fix dates in RSS feed 2017-05-11 16:54:28 -05:00
sfan5
a96902a737 Fix minor display bug on profile edit page 2017-05-11 16:54:28 -05:00
akuma06
61ba31b337 No more gzip 2017-05-11 22:21:12 +02:00
tomleb
bfb9bf3239 Fix empty comment (sanitize then trim and check) (#368) 2017-05-11 14:46:14 -05:00
akuma06
4d5c04bbac Added CROS for RSS 2017-05-11 15:50:26 +02:00
PantsuDev
1f383b06f5 Merge pull request #360 from majestrate/cache-interface
ReAdd cache
2017-05-11 23:42:34 +10:00
Jeff Becker
0e8a3cde3b Merge branch 'cache-interface' into merge-cache-interface 2017-05-11 09:24:20 -04:00
sfan5
8e2c643a34 Fix missing error enforcement on comments and reports 2017-05-11 15:14:48 +02:00
Jeff Becker
059ea7d2a8 abstract out cache 2017-05-11 09:01:53 -04:00
Eliot Whalan
c1cafb9d9a Remove broken caching stuff 2017-05-11 22:22:49 +10:00
akuma06
a17004360f Merge pull request #357 from majestrate/scraper
fixes
2017-05-11 13:50:46 +02:00
Jeff Becker
a361bcca4f fix template tests 2017-05-11 07:42:26 -04:00
ayame-git
51c5f198b4 Merge branch 'master' of github.com:ewhal/nyaa into api 2017-05-11 14:38:46 +03:00
akuma06
9f2d0f1962 New translation function and time depends on translation 2017-05-11 13:15:52 +02:00
Jeff Becker
7d98ebd7fe Merge remote-tracking branch 'origin/master' 2017-05-11 06:50:53 -04:00
Jeff Becker
33fe211d3f mod panel template cleanup, make mod panel templates reload on SIGHUP 2017-05-11 06:49:05 -04:00
sfan5
500f5bda02 Fix editing other profiles as a mod 2017-05-11 11:58:44 +02:00
ayame-git
da8b2dc9c4 base16 and base32 2017-05-11 07:23:02 +03:00
ayame-git
ac6f4f82fb welll fuck me 2017-05-11 07:12:54 +03:00
ayame-git
42c79c2794 applied akuma dup fix 2017-05-11 06:25:41 +03:00
ayame-git
7e3d116808 Merge branch 'master' of github.com:ewhal/nyaa into api 2017-05-11 06:06:12 +03:00
ayame-git
d879f76e16 ? 2017-05-11 06:05:52 +03:00
ayame-git
cc5baed9c1 stuff 2017-05-11 06:04:11 +03:00
ayame-git
c32fd6e7b7 torrent upload 2017-05-11 05:56:59 +03:00
akuma06
a94c4c08b0 Fix typo 2017-05-11 04:16:37 +02:00
akuma06
defb8a6003 Possible Fixes for dup torrent 2017-05-11 04:07:39 +02:00
akuma06
7eed942741 new way to show seed/leech 2017-05-11 03:00:57 +02:00
akuma06
536c403ea1 fix gzip 2017-05-11 02:29:33 +02:00
akuma06
e41a79c808 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	router/userHandler.go
2017-05-11 02:20:11 +02:00
akuma06
c1add13aa2 Fixes edit viewable by ever1 2017-05-11 02:18:19 +02:00
ayame-git
60ce69d2b9 security fix 2017-05-11 03:17:01 +03:00
sfan5
7bc395068d Fix modpanel torrent edit (#328)
* Fix modpanel torrent edits breaking torrents

* Fix hash not being monospace anymore

* Fix modpanel torrent edit strings

* Fix modpanel torrent edit creating a new user (wtf GORM)
2017-05-10 18:46:50 -05:00
Atvaark
0678d19097 Add template and db tests (#291)
- The db test will run an sqlite3 database in in-memory
  mode and run the automigrations.
- The template test will check if all the templates
  that are stored in package variables (template.Must)
  compile and if ReloadTemplates works without panicking.
2017-05-10 18:15:36 -05:00
ayame-git
d2c2de2ef9 ... 2017-05-11 01:10:42 +03:00
ayame-git
054f712cba i'm really bad 2017-05-11 01:08:13 +03:00
akuma06
ff0a588ff5 Merge branch 'master' of https://github.com/ewhal/nyaa 2017-05-11 00:03:02 +02:00
akuma06
802945384b Fixes 2017-05-11 00:02:36 +02:00
akuma06
f94dc3103c Added edit torrent view mod panel & fix 2017-05-10 23:53:25 +02:00
sfan5
9109f68c96 Make Email changes work correctly 2017-05-10 23:43:58 +02:00
akuma06
90b9c5ba2b Merge remote-tracking branch 'origin/master'
# Conflicts:
#	service/user/verification.go
2017-05-10 22:42:56 +02:00
akuma06
dee08850cf Fixing 2017-05-10 22:42:11 +02:00
sfan5
01c2c20bbb Fix the build 2017-05-10 22:34:57 +02:00
ayame-git
c0e2eaa56a Merge branch 'master' of github.com:ewhal/nyaa 2017-05-10 23:31:27 +03:00
ayame-git
9b5515dcb8 🤔 2017-05-10 23:31:15 +03:00
akuma06
3acb410af7 Merge pull request #302 from sfan5/fixayy
Fixes & Features (as always)
2017-05-10 22:24:33 +02:00
ayame-git
6198c4a618 fixed dup renchon on report 2017-05-10 23:24:06 +03:00
sfan5
e11759a4f1 Disallow empty comments 2017-05-10 22:11:37 +02:00
sfan5
d98d918301 Allow marking uploads as remake 2017-05-10 22:11:37 +02:00
sfan5
c5052a11c3 Mark torrents from trusted users as trusted 2017-05-10 22:10:31 +02:00
ayame-git
cf601d1e52 Merge branch 'master' of github.com:ewhal/nyaa 2017-05-10 23:06:22 +03:00
ayame-git
f326d801c2 i don't even remember what i fix anymore' 2017-05-10 23:05:56 +03:00
akuma06
b2ae3b4ac1 Added a function to not have characters encoded by go template 2017-05-10 22:03:57 +02:00
Ramon Dantas
c84140964b Add language selector (#298) 2017-05-10 14:45:39 -05:00
ayame-git
755a426931 reports are deleted with torrents 2017-05-10 22:29:59 +03:00
ayame-git
8373bce02f unborked report list 2017-05-10 22:09:37 +03:00
ayame-git
4ada27a3cc no need for potato fix anymore 2017-05-10 21:50:27 +03:00
ayame-git
1bf4012eb2 yea.. 2017-05-10 21:42:20 +03:00
akuma06
9b2c003394 Merge branch 'master' of https://github.com/ewhal/nyaa into akuma06/master 2017-05-10 20:25:58 +02:00
akuma06
45e6fc109f Edit profile unborked, please don't bork it anymore :'( 2017-05-10 20:24:37 +02:00
Eliot Whalan
07edb57728 Merge branch 'master' of https://github.com/ewhal/nyaa 2017-05-11 04:05:40 +10:00
Eliot Whalan
e344896b2c clear cache on upload 2017-05-11 04:05:22 +10:00
ayame-git
fcd0fec9a5 some pages not dispyaing corectly in mod page 2017-05-10 20:17:07 +03:00
PantsuDev
0223f575d3 Merge pull request #281 from ewhal/akuma06/master
Fixing Mod Panel
2017-05-11 01:41:40 +10:00
akuma06
b88cd33794 Merge branch 'master' of https://github.com/ewhal/nyaa into akuma06/master 2017-05-10 17:38:33 +02:00
akuma06
0bf8088457 Mostly finished
Someone need to do torrent edit page
Can't do it :/
2017-05-10 17:37:49 +02:00
akuma06
032688f532 Fixed 2017-05-10 16:43:50 +02:00
PantsuDev
e1e1aac37b Merge pull request #283 from sfan5/fix123
fix stuff...
2017-05-11 00:18:12 +10:00
sfan5
eddeed572f Fix text on profile edit page 2017-05-10 15:49:46 +02:00
akuma06
54991542cb Merge branch 'master' of https://github.com/ewhal/nyaa into akuma06/master
Conflicts:
	router/templateVariables.go
2017-05-10 15:20:14 +02:00
ripdog
aae25274c1 Add a route for the user settings form: /edit,called UserDetailsHandler 2017-05-11 01:09:36 +12:00
akuma06
46d65ba865 Fixing Mod Panel (WIP) 2017-05-10 15:08:38 +02:00