Commit Graph

21 Commits

Author SHA1 Message Date
Nicolas F 60ce4ec3f1 Implement comment locking (#439)
* Implement comment locking

This adds a new flags to torrents, which is only editable by
moderators and admins. If checked, it does not allow unprivileged
users to post, edit or delete comments on that torrent.

* Rename "locked" to "comment_locked".

* Shorter button and additional words on alt text

* Admin log: Change comment locking message

dude I love bikeshedding xd

* Bikeshedding over admin log messages

* >&
Also some bikeshedding
2018-03-25 17:03:49 -07:00
A nyaa developer f8a314df4f Better bans (#341)
* better bans

* put jinja2 template into correct file
2017-08-25 18:53:35 -04:00
Arylide 5fb178f3a8 idk 2017-08-05 13:03:43 -07:00
A nyaa developer e728ca1818 Expose soft delete to users and allow reuploading of deleted torrents. (#331)
Add banning torrents for moderators which disallows reuploading.
New delete UI.
2017-08-05 15:41:59 -04:00
Kfir Hadas 9acdd14e81 Move /view/<int:torrent_id> route into 'torrents' blueprint
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas 0887dde6fc Move /user/<user_name> route into a blueprint
Move supporting functions and variables into other files
* nyaa.utils:
  - cached_function
  - chain_get
* nyaa.search:
  - DEFAULT_MAX_SEARCH_RESULT
  - DEFAULT_PER_PAGE
  - SERACH_PAGINATE_DISPLAY_MSG
  - _generate_query_string
2017-07-27 14:14:00 +03:00
Nicolas F e564b3ee19 Change label of button on edit page
Small nitpick change.

"Edit" being the button that saves the edits might be a little
confusing, whereas "Save Changes" is less ambiguous and more
easily recognised.
2017-06-01 06:29:14 -05:00
nyaazi 5332ba1a49 Merge branch 'master' into reports 2017-05-26 15:25:02 +03:00
ReimuHakurei 8da628136f Improve breaking of button groups. 2017-05-24 08:37:13 +00:00
TheAMM ea2e01ae2c Revert edit/upload form back to -md-, split flag buttons into two groups 2017-05-24 11:31:29 +03:00
ReimuHakurei 0d839eca35 More layout improvements. 2017-05-24 05:28:30 +00:00
snowfag 02c7223f09 Move deleted button on edit page. 2017-05-24 00:44:27 -04:00
snowfag 34fe2c5c67 change glyphs for buttons. 2017-05-23 22:16:05 -04:00
snowfag 4a7d8646b6 Update upload/edit buttons. 2017-05-23 21:11:58 -04:00
snowfag ad8a5c0d1c Update buttons and css. 2017-05-23 01:17:55 -04:00
nyaadev b7144f80f9 Make comments great again. 2017-05-22 23:38:06 +02:00
nyaadev 9af778217b DB CHANGE: Add uploader ip address to torrent column and show on torrent view page for superadmins.
Added migration script!: remove sukebei_ lines if your local db does not have those.
Show users ip address on user page for superadmins.
Rename Admin to Moderator internally.
Moderators can now change user level to trusted.
Superadmins can make users moderator.
Improve changing user level.
2017-05-21 19:12:15 +02:00
TheAMM f31efcdaa1 Align fields better, move Anonymous as first flag 2017-05-20 22:50:49 +03:00
TheAMM b9d88e8960 Restructure upload.html and edit.html as well as route logic
Rename variables and reformats user/admin logic
Add an is_trusted field to upload and edit forms

Restructure fields on upload and edit pages
Add simple styling for checkboxes
Add titles (mouseover) for checkboxes with crude explanations
Show Anonymous checkbox during upload and check & disable it for guests
Show Trusted checkbox for users at or above Trusted level
Adjust description field rendering to show field label above it

Add title (mouseover) for edit icon on torrent page
Show uploader for admins on anonymous torrents
Show uploader for admins when editing others' torrents
2017-05-20 22:00:45 +03:00
Nathan Yam d45c9dca43 Add markdown editor when editing own torrents 2017-05-14 16:21:20 +10:00
nyaadev 00d65e312c Initial commit. 2017-05-12 20:51:49 +02:00