Commit Graph

87 Commits

Author SHA1 Message Date
TheAMM f7ed2c06d3 Jeez fine PEP8 I get it 2017-05-27 18:10:21 +03:00
TheAMM 6c80557e39 SCHEMA CHANGE: Add comment_count to Torrent
with a helper function on Torrent to update the count.
2017-05-26 16:08:46 +03:00
nyaazi 5332ba1a49 Merge branch 'master' into reports 2017-05-26 15:25:02 +03:00
Kfir Hadas ebcf1dc836 PEP8 2017-05-25 09:08:18 +03:00
nyaadev 02c04ce893 order torrent.trackers relation 2017-05-25 00:36:49 +02:00
TheAMM 3a4280ccc5 Redirect searches with an info hash to torrent if found
Redirect will not happen on RSS or user page views (/searches).
Adds a helper to models.Torrent to search with a hex hash
Reformats "special search logic"
2017-05-24 17:34:36 +03:00
snowfag d38f30a7b7 Admins should have same userlevel_str as mods. 2017-05-24 02:18:09 -04:00
nyaadev 020a0871bd fix #173 and add avatar to mod user info
add rank color to username everywhere
some other minor changes
2017-05-24 00:28:17 +02:00
nyaadev af61e5b1e9 some html + css changes around comments 2017-05-23 02:47:20 +02:00
nyaadev 8ef6e915da shameful late edit: change comment text collation to utf8mb4 2017-05-23 00:36:53 +02:00
nyaadev b7144f80f9 Make comments great again. 2017-05-22 23:38:06 +02:00
snowfag aab3eaccaa Spruce up comments. 2017-05-22 23:20:52 +02:00
nyaadev fee55c1792 comments can be added+removed. gravatar for user avatar 2017-05-22 23:20:49 +02:00
Sn0wCrack c3a637c8eb Added date column t o comments 2017-05-22 23:19:36 +02:00
Sn0wCrack 6d608ab2f4 Added comments 2017-05-22 23:19:23 +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
nyaazi 92a6074fa2 Merge branch 'master' into reports 2017-05-21 18:48:45 +03:00
TheAMM 752a5a1f95 Clean up models.User.level helpers 2017-05-20 21:59:24 +03:00
nyaazi 04c9ef6685 Redundant query 2017-05-20 15:02:26 +03:00
nyaazi 73c84ce5ec Remove duplicate reports for already reviewed torrent 2017-05-20 13:58:58 +03:00
nyaazi 354736720b Implemented report action
Actions: Close report, Hide torrent, Delete torrent
2017-05-20 13:33:58 +03:00
TheAMM 95d2bff614 Add cascade to Torrent relationships for entry nuking (debugging purposes)
Doesn't change the schema, only how SQA will handle session.delete(Torrent.by_id(1337))
2017-05-20 10:16:01 +03:00
nyaazi e6083325d6 Added reports page v2 2017-05-19 20:53:47 +03:00
nyaazi 799d5914d6 Added reports page 2017-05-19 20:52:04 +03:00
nyaazi 98fbe6efb1 Adding report table, route and view. 2017-05-19 20:03:47 +03:00
TheAMM daef4a9c6a Finalize RSS ES fix 2017-05-19 19:25:48 +03:00
nyaadev 2a1f8fab87 pep8 2017-05-19 14:36:33 +02:00
TheAMM 18ebf201b8 Add a function for getting a id->category name map
Redo _create_upload_category_choices to use new function
Also removes (renames) by_id from models.SubCategory (we use composite key)
2017-05-19 15:21:20 +03:00
TheAMM 6bfb65172c Add helper functions to models.User 2017-05-18 15:28:51 +03:00
martstern 931b2b0b83 added user class display and editing 2017-05-17 06:02:15 -04:00
sharkykh 5e60847cb6 More E501 line too long - multiple files
nyaa/backend.py:75
nyaa/forms.py:129,175
nyaa/models.py:88
2017-05-16 12:43:33 +03:00
sharkykh a79c0f8a93 PEP8 (a run of lint.sh) 2017-05-16 12:42:12 +03:00
martstern eb59116429 allow admin to give trusted to users. show users their own info when logged in 2017-05-15 07:49:25 -04:00
TheAMM 00a0327b19 Format information into a link if possible
Fixes issue #24 (am I doing this right?)
Supports HTTP(S) and IRC channels (#channel@server.com)
2017-05-13 23:44:00 +03:00
TheAMM 39230e1f39 [templates] Add JS-calculated hovertext for date ages
On torrent listing and torrent view, mouse over the times to see "X hours Y minutes Z seconds ago" etc
2017-05-13 02:41:52 +03:00
TheAMM 517d3e8e32 [templates, config] Add SITE_FLAVOR for selecting nyaa/sukebei, update templates
By default TABLE_PREFIX is derived from flavor.
Added back Date column, adjusted column widths
2017-05-13 02:41:52 +03:00
nyaadev 00d65e312c Initial commit. 2017-05-12 20:51:49 +02:00