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/templates
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
..
admin Deleted torrents mod done (#732) 2017-05-25 02:19:05 +02:00
user Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
404.html Move translation func to template variables (#652) 2017-05-21 08:38:28 +10:00
_badgemenu.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
_captcha.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
_profile_edit.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
_search.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
_user_list_torrents.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
_user_notifications.html Merge remote-tracking branch 'refs/remotes/origin/dev' into notifications 2017-05-21 01:21:56 +02:00
admin_index.html Move translation func to template variables (#652) 2017-05-21 08:38:28 +10:00
change_language.html Move translation func to template variables (#652) 2017-05-21 08:38:28 +10:00
dumps.html Move translation func to template variables (#652) 2017-05-21 08:38:28 +10:00
FAQ.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
home.html Optimized the site (#725) 2017-05-24 16:57:48 +10:00
index.html Optimized the site (#725) 2017-05-24 16:57:48 +10:00
upload.html Frontend rewrite (DONE) (#723) 2017-05-24 14:20:51 +10:00
view.html Move more things to CSS 2017-05-24 14:34:52 -03:00