Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/util
akuma06 6edc68fe22 Deleted torrents mod done (#732)
* 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

* 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.

* 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

* Fix moveto to status

moveto deprecated in api

* Tested and works!

Changes:
* Updates only the colomns of torrent table
* Moved categories config in config/torrents.go

* Forgot this file in last commit

* Less useless queries

The use of Save makes it that users are created and updates also all the
associatiated models. Better to just update the colomns needed (less
useless queries)

* Some Updates

* Added a new status of 5 for locking torrents
* Modifying the list torrents view for using it in deleted torrents view
* Added function to get deleted torrents
* Torrents (and reports) can be definitely deleted
* Some new translation string

* Fixing

* fix 2

* Added upload check for locked torrents

If a user owns a torrent, has deleted it and try to repload it. As long
as it has not been locked, he can.

* Fixing wrong condition in isdeleted

* Finished

* Info messages on success when deletes or lock
* Fixed double deleted_at is Null
* Added Link to view of deleted torrents
* Added new translation string
2017-05-25 02:19:05 +02:00
..
categories Forgot this file in last commit 2017-05-24 23:20:22 +02:00
crypto Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245) 2017-05-09 21:34:40 -05:00
email finish repo transfer 2017-05-17 15:58:40 +10:00
filelist Add tree-view file list (Done) (#724) 2017-05-25 00:13:56 +10:00
languages Better to check user.ID, to be sure not anon 2017-05-21 02:12:29 +02:00
log finish repo transfer 2017-05-17 15:58:40 +10:00
messages go fmt all the code 2017-05-24 17:11:13 +10:00
metainfo Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245) 2017-05-09 21:34:40 -05:00
modelHelper wiiiip 2017-05-21 20:20:40 +02:00
search Deleted torrents mod done (#732) 2017-05-25 02:19:05 +02:00
signals finish repo transfer 2017-05-17 15:58:40 +10:00
timeHelper Cleanups and fixes (#623) 2017-05-19 12:55:59 +10:00
format.go Format unknown filesizes in a better way 2017-05-21 14:34:32 +02:00
magnet.go use util to generate magnets 2017-05-06 18:10:35 -07:00
markdown.go go fmt all the code 2017-05-24 17:11:13 +10:00
safe.go Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245) 2017-05-09 21:34:40 -05:00
server.go finish repo transfer 2017-05-17 15:58:40 +10:00
unzlib.go finish repo transfer 2017-05-17 15:58:40 +10:00
whitespace.go add torrent file parsing for upload form 2017-05-06 07:43:24 -04:00