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

292 commits

Auteur SHA1 Message Date
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