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

53 Révisions

Auteur SHA1 Message Date
sfan5 2ee85d3ec5 Fix modpanel offering to delete Renchon °Д° 2017-06-06 16:54:05 +02:00
akuma06 38e8ee3a7a New modpanel fix (#895)
* Comments count number

* New Modpanel fix

Fixes #755 (@ilikecats)
modpanel tables have margins
modpanel delete buttons are red
some coloring for buttons
reassign form looks better
reassign form textarea have rows="20" cols="40"
"save changes" btn green
report reasons are now translated in modpanel
delete is a real button on modpanel users page

* moved getReportDescription
2017-06-04 02:28:33 +02:00
kipukun 1365f18398 Make forms look a little better (#885) 2017-06-02 22:35:42 +02:00
akuma06 a77e341585 Added an edit button 2017-06-02 20:24:44 +02:00
akuma06 1974692480 Forgot the selectAll.js 2017-06-02 20:22:15 +02:00
akuma06 bd7fe52273 New ModPanel Theme (#883)
* New ModPanel Theme

* Implemented the new @kipukun theme in ModPanel
* Added new translation string
* Fixed the toolbar in /mod/torrents

* Little fix on torrents report

* Remove double navigation

* Added a tag h1 for pages and new translation strings~

* fix warn message
2017-06-02 20:10:36 +02:00
akuma06 e62ebb05ba Mass edit mod api JS (done) (#868)
* Mass Edit MOD api JS (WIP)

In continuity with the mass edit mod api, this is the javascript use of
it.
##What does it do?
* Delete of multiple torrents on index/search
* Category change of multiple torrents
* Change of owner of multiple torrents
* Lock & delete of multiple torrents

##How?
* New toolbar only visible for mods
* Checkboxes added only for mods
* Selection and click on the button in toolbar
* Nothing is submitted, you have to review the changes in a modal window
listing them.
* Then the ajax queries are initialized one at a time with a progression
bar
* You can always at any moment delete entries from the queuing list

* Improved progress bar

* Deleting part almost done

Improved modal design
All dom interactions should be done
Prepared Query for only one callback
Improved Modal to keep a link to the active modal

* Finished =D

Added some translation string

* Forgot the refreshing of the page

Just an option that can be disabled by making refreshTimeout to 0
2017-06-02 12:51:44 +10:00
akuma06 3ec367a759 CSRF Support + better key for context
* Added new dep: gorilla/csrf
* CSRF field in forms
* CSRF variable in commontemplatevariables
* New key for messages and user context

Please change EnableSecureCSRF to false when testing locally and don't
merge config/env.go with the changes
2017-05-29 17:07:18 +02:00
akuma06 6bf2e38204 Forgot torrent report list
More fix for #830
2017-05-29 13:52:01 +02:00
akuma06 cef60c476a fix for torrent report
should fix #830
2017-05-29 13:49:03 +02:00
akuma06 3775e9dfb5 Torrent Hidden Option (to test before merging)
* Added a check on username and userId when converting torrent to JSON
* Added a checkbox for hidden in modepanel, torrent user edit and upload
* Added a Hidden field bool in torrent model and upload form
2017-05-27 20:33:40 +02:00
akuma06 2773fe200d Golint friendly (#747)
* Making the code Golint friendly

* No exported variables when not needed
* Same for functions
* Simplifying Templates variables with a form basic template variable
and a modelList basic template variable

* Adapted templates to new template variables

* use of .Models instead of model list
* use of .Form instead of modelform

* Small fix

* Small fix 2

Forgot $.Form

* Reverting templateDir as a var
2017-05-25 21:54:58 +02:00
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
akuma06 1cccaf99e0 Fix moveto to status
moveto deprecated in api
2017-05-24 21:43:07 +02:00
akuma06 99f2092028 Revert "Revert "New User Edit Panel"" 2017-05-23 04:05:33 +02:00
alucard0134 ed5152a4a0 Revert "New User Edit Panel" 2017-05-22 19:10:06 -05: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
yiiT 0613b149d9 People forget about mods tools (#664) 2017-05-21 12:10:59 +10: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 0d5e2abf7f Added multi action on torrents 2017-05-20 13:45:15 +02:00
PantsuDev 0807ca5d5d Add sukebei cat to admin edit torrent page 2017-05-17 15:33:06 +10:00
akuma06 1a3ffdf7f2 Merge pull request #498 from yueou/dev
Add new translations
2017-05-14 19:47:32 +02:00
xqm 44a6eaf524 Add new translations
Add new translations
2017-05-15 01:32:25 +08:00
sfan5 15ecf9827b Fix minor bug after completing modpanel reassing form 2017-05-14 18:17:18 +02:00
sfan5 d2eacfc692 Add torrent link to modpanel comment list 2017-05-14 17:41:55 +02:00
sfan5 c0be570e54 Torrent Reassign feature for modpanel 2017-05-13 17:29:21 +02:00
sfan5 3116274990 changes (#426)
* Hide change language footer when logged in

* Force people to select a report reason

* Don't ask for confirmation before deleting a torrent report

* Small cleanup of modpanel templates

* Fix modpanel comment list

* Fix missing "Delete" translation in modpanel

* Update German translation

* A few updates to the FAQ
2017-05-13 21:57:57 +10: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
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 2900278526 Fix modpanel index page
Users don't seem to be fetched yet, display their IDs instead
2017-05-12 12:20:01 +02:00
akuma06 e8774abf21 Updated search
When in a user page and clicked on more torrents, show a list navigable
of the user torrent
On that list, we can make advance search (categories, order, ...)

Moderation search reimplemented
Clicking on user (id) in the torrent list redirect to the list of the
user torrents
Ability to search within the user torrents
2017-05-11 03:52:42 +02:00
sfan5 7bc395068d Fix modpanel torrent edit (#328)
* Fix modpanel torrent edits breaking torrents

* Fix hash not being monospace anymore

* Fix modpanel torrent edit strings

* Fix modpanel torrent edit creating a new user (wtf GORM)
2017-05-10 18:46:50 -05:00
kipukun fc6f55f991 add structure to individual views as well 2017-05-10 19:00:09 -04:00
kipukun 0e71cd1fbb make mod index more structured 2017-05-10 19:00:09 -04:00
kipukun e7933463dd fix padding on mod page, removing search bar temporarily 2017-05-10 19:00:08 -04:00
ayame-git 054f712cba i'm really bad 2017-05-11 01:08:13 +03:00
akuma06 802945384b Fixes 2017-05-11 00:02:36 +02:00
akuma06 f94dc3103c Added edit torrent view mod panel & fix 2017-05-10 23:53:25 +02:00
akuma06 ceb9e039f1 Renchon can't be deleted! 2017-05-10 22:55:50 +02:00
ayame-git f326d801c2 i don't even remember what i fix anymore' 2017-05-10 23:05:56 +03:00
ayame-git 8373bce02f unborked report list 2017-05-10 22:09:37 +03:00
ayame-git fcd0fec9a5 some pages not dispyaing corectly in mod page 2017-05-10 20:17:07 +03:00
akuma06 b0e359e504 Update torrent_report.html 2017-05-10 18:50:24 +02:00
akuma06 0a1bd085ae Updated listing css 2017-05-10 18:47:37 +02:00
akuma06 b00e64acc8 forgot li 2017-05-10 17:47:28 +02:00
akuma06 0bf8088457 Mostly finished
Someone need to do torrent edit page
Can't do it :/
2017-05-10 17:37:49 +02:00
akuma06 032688f532 Fixed 2017-05-10 16:43:50 +02:00
akuma06 46d65ba865 Fixing Mod Panel (WIP) 2017-05-10 15:08:38 +02:00
Your Name 8d9605def3 delete shit 2017-05-10 07:10:23 +00:00
Your Name 771527b518 everything 'works' now 2017-05-10 05:56:02 +00:00