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

365 commits

Auteur SHA1 Message Date
Eliot Whalan
cd573698b1
Merge branch 'dev' of github.com:NyaaPantsu/nyaa into dev 2017-05-23 11:07:00 +10:00
Eliot Whalan
5a8ae4665d
Remove unused package 2017-05-23 11:06:43 +10:00
alucard0134
ed5152a4a0 Revert "New User Edit Panel" 2017-05-22 19:10:06 -05:00
Eliot Whalan
991ed4178e
Don't convert hashes to base16 2017-05-23 10:06:55 +10:00
akuma06
c8c3dc1980 New User Edit Panel
User can edit torrents
* delete torrents
+ New translation string for mod panel and user edit torrent panel
+ Improvement of messages util with implementation of T (no need to get
Tfunc now, messages util do that for you)
+ Use of @ElegantMonkey GetCategories to generate select of categories
in search and forms
2017-05-23 01:26:09 +02:00
akuma06
ec0fde9923 Merge pull request #685 from ElegantMonkey/check-if-category-exists
Verify torrent category on upload
2017-05-22 20:34:58 +02:00
ElegantMonkey
aa14a0535b Renamed CategoryID to CategoryName 2017-05-22 15:18:29 -03:00
ElegantMonkey
331143e094 Verify torrent category on upload
Added a new package, "categories", with the valid categories for each
Nyaa and Sukebei. On upload, check if the category is present on
the valid ones. Also changed the template function Category_Nyaa and
Category_Sukebei to reflect this.
2017-05-22 13:25:04 -03:00
Akaahn
41e0575b82 Implemented EZTV RSS Spec #569 #451
github.com/gorilla/feeds pulled in to github.com/NyaaPantsu/nyaa/feeds
and modified to conform to EZTV spec, note: missing tackers tag
2017-05-22 17:28:20 +02:00
akuma06
4411c5d731 Fix #679
Parsing template.HTML into string and then use Sprintf make a bug.
2017-05-22 10:15:18 +02:00
akuma06
7bda7d1538 Fixing routes URL
fix of "user/id/-" #676
2017-05-22 09:10:15 +02:00
akuma06
50c8f52ee8 Fix 2017-05-22 00:52:07 +02:00
akuma06
07c120407e Finished 2017-05-22 00:22:42 +02:00
akuma06
a4c23dda1f wiiiip 2017-05-21 20:20:40 +02:00
akuma06
5639033370 Wiiiiiip 2017-05-21 19:38:39 +02:00
akuma06
32c51a57cb User Settings Notification (WIP) 2017-05-21 18:13:28 +02:00
sfan5
67ec4d5787 Format unknown filesizes in a better way 2017-05-21 14:34:32 +02:00
akuma06
11950930ad output template.HTML 2017-05-21 14:04:37 +02:00
akuma06
1bd773f537 New filesize function
Take filesize and languages.TemplateTfunc as args and output a string
To use in templates
2017-05-21 14:03:03 +02:00
akuma06
380515b322 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	router/template_functions.go
2017-05-21 13:56:38 +02:00
akuma06
9b02397978 Add filesize function 2017-05-21 13:55:29 +02:00
Ramon Dantas
adb90d657c Group common template variables together. (#665)
* Bundle fields used in most template variables under CommonTemplateVariables

* Make handlers use CommonTemplateVariables
2017-05-21 17:10:19 +10:00
yiiT
0613b149d9 People forget about mods tools (#664) 2017-05-21 12:10:59 +10:00
Ramon Dantas
20209508c9 Bundle CaptchaID and Tfunc for _captcha.html (#662) 2017-05-21 12:10:31 +10:00
akuma06
354e7aaea0 Better to check user.ID, to be sure not anon 2017-05-21 02:12:29 +02:00
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