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

330 commits

Auteur SHA1 Message Date
akuma06 93eb4d7ae1 Make some changes
* Reports can now be cleared for the torrents selected without having to
delete them
* Users with no admin rights can't delete reports
2017-05-24 21:16:15 +02:00
akuma06 cf844f0d43 Merge branch 'dev' into torrent-mass-mod-edit 2017-05-24 20:29:52 +02:00
akuma06 1ffea3f39f Finished Mass mod Api
As per suggestion of @yiiTT in #720, I added:
* Changing torrents category
* Deletion of reports with deletion of a torrent
* Changing owner of multiple torrents

Commit also add some new translation strings.
2017-05-24 20:23:54 +02:00
Steindór da760d4131 Added a counter below the search result nav (#728)
* added pagination

* cleanup

* indentation fix

* fix
2017-05-25 00:14:24 +10:00
Ramon Dantas 86447b853c Add tree-view file list (Done) (#724)
* Add tree-view file list

* Add TotalSize field to folders

* Remove bootstrap/jquery related code

* Add icons to filelist, some CSS formatting

Moved a few styles from the format string for the tree view, to CSS
(where possible). Make icons look consistent under all themes.

* Make filelist hideable again, show it when JS is disabled
2017-05-25 00:13:56 +10:00
Eliot Whalan 3527f01cc5
Rerun gofmt it again with -s 2017-05-24 17:15:07 +10:00
Eliot Whalan b4b1b1c26a
go fmt all the code 2017-05-24 17:11:13 +10:00
akuma06 d2617c9c5d Torrent Mass Edit Api (WIP)
* Torrents can be deleted in mass from frontend with api post request
* Torrents status can be edited from frontend with api post request
-- Look to function doc for more info on how to use it

It is a WIP so it might not work =D
2017-05-24 01:03:03 +02:00
akuma06 21ac12c852 Some updates
* Added support of UGC without div tag for torrents
* Added support of basic html tags for comments (a, img, b, em, u)

Fixed:
* Bug with r *request becoming a nul pointer when loading from contextin
messages.go
2017-05-24 00:08:02 +02:00
akuma06 23e7d33bb6 Fixing insert of unneeded html tags in db
Added a Sanitize function in util
* Possibility to add model in it
* Already a preset default model

Comments shouldn't be allowed html, too difficult to check every comment
for broken html
Torrents are still allowed html tags but I don't think it should since
we use markdown.
2017-05-23 22:09:20 +02:00
akuma06 07623e85ed Merge pull request #698 from NyaaPantsu/revert-692-revert-690-user-torrent-edit
Allow users to edit & delete their torrents
2017-05-23 19:43:09 +02:00
nopjmp 6cfaca1289 Add err check from GetTorrentById return in ApiViewHandler (#696)
This should give a better response to API users for when something is not found.
2017-05-23 13:18:25 +10:00
nopjmp af2850518c Implement HEAD for views (#695)
* Implement HEAD for /view/{id}

Implement HEAD for the torrent view route by calling GetRawTorrentById.
Run gofmt on the file while we are here.

* Implement HEAD for /api/view/{id}

Implement HEAD in the same way as /view/{id}
Also run gofmt on the api_handler.go
2017-05-23 13:18:19 +10:00
akuma06 b75fc9ce53 update 2017-05-23 04:12:02 +02:00
akuma06 99f2092028 Revert "Revert "New User Edit Panel"" 2017-05-23 04:05:33 +02:00
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