1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-06-29 09:57:05 +00:00
Commit graph

325 commits

Author SHA1 Message Date
shm0o 8b7712b1d0 templates/view.html: use url_for for the 'edit_torrent' endpoint 2017-05-25 19:33:47 -04:00
shm0o 18dd7cd66f static_cachebuster: build the url with url_for 2017-05-25 19:33:47 -04:00
TheAMM b6ecad898d Fix username validator
Tehee, oops!
2017-05-26 01:47:05 +03:00
TheAMM 3f49f17baa Add simple OG metadata tags to templates
Hello, #185
2017-05-26 01:03:59 +03:00
TheAMM 3bd4898a65 Hotfix #193
Temporary workaround because CSS is hard.
2017-05-26 00:09:37 +03:00
Kfir Hadas d7181cf6a1 PEP8 2017-05-25 22:19:42 +03:00
Kfir Hadas 559602d19b Fix inverted icons in file list 2017-05-25 22:16:12 +03:00
TheAMM ca382bff9c Fix RSS magnets for ES torrents 2017-05-25 21:52:26 +03:00
Anna-Maria Meriniemi 0394639954 Calculate comment age clientside, show timestamp in mouseover title (#191)
Resolves outdated comment ages thanks to caching and will show timestamps in local time.
2017-05-25 21:13:35 +03:00
TheAMM bb30f6e3d2 Scroll user to their new comment after submission 2017-05-25 21:11:55 +03:00
TheAMM 1ab3d6e3eb Add cachebuster helper function for static css/js 2017-05-25 20:11:37 +03:00
Kfir Hadas e91fdb70da Strip collapse functionality from file list panel 2017-05-25 16:41:07 +03:00
Anna-Maria Meriniemi cfa41bf388 Merge pull request #186 from sharkykh/collapsible-file-tree
Basic collapsible file tree
2017-05-25 15:53:47 +03:00
Kfir Hadas ae4d75ecde Show first level's items based on amount
Currently set to show when list has 20 items or less
2017-05-25 15:16:29 +03:00
Kfir Hadas e0ffadb08c Fix extra margin/padding of files and folders 2017-05-25 14:43:50 +03:00
Anna-Maria Meriniemi d07e3e34ae Merge pull request #183 from sharkykh/user-page-gravatar
Use gravatar URL in /user/<username>
2017-05-25 13:50:36 +03:00
Kfir Hadas a64cac5e5e Basic collapsible file tree 2017-05-25 12:53:23 +03:00
TheAMM b09c61980c Add new route for torrent download, fix Content-Disposition
New route is `/download/<torrent_id>.torrent`, which will help people using tools that do not consider headers.
Old torrent download route still works.
Updated one remaining link to use url_for.

Added plain `filename="..."` to `Content-Disposition`, since it is still the most common standard with percent encoded UTF-8.
Fixes part 2 of #45
2017-05-25 11:15:45 +03:00
Johnny Ding 5a19dae649 Merge pull request #182 from sharkykh/fix-lint
Apply PEP8
2017-05-24 23:40:42 -07:00
Kfir Hadas 80a5cb65a4 Use gravatar URL in /user/x
Even though only mods/admins can see it
2017-05-25 09:29:38 +03:00
aldacron d5e2311c56 Resolves #181 2017-05-24 23:25:21 -07:00
aldacron 142dd5359c Resolves #129 and refactored create magnet es naming 2017-05-24 23:19:08 -07: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 4f1576e086 Fancy grammar in your anime torrents 2017-05-24 21:54:50 +03:00
TheAMM d287aaf974 Show "Search <user>'s torrents..." on user pages in search field 2017-05-24 17:34:53 +03: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
TheAMM 0e89d3f24b Show torrent hash on torrent page 2017-05-24 17:17:51 +03:00
TheAMM aeef80edaa Clean up user search suggestion 2017-05-24 13:34:33 +03:00
ReimuHakurei 363203dfe0 Fix error on search for non-Unicode. 2017-05-24 10:14:03 +00:00
ReimuHakurei 8da628136f Improve breaking of button groups. 2017-05-24 08:37:13 +00:00
ReimuHakurei f215f0803c Add per-user filter on search page based on query. 2017-05-24 08:33:32 +00:00
ReimuHakurei 63a469e08b Hide news blob on search pages. 2017-05-24 08:33:32 +00:00
TheAMM b60ec9ec0a Failsafe in API for explicit nulls/Nones 2017-05-24 11:32:51 +03: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 3418cb6175 More validation. 2017-05-24 06:45:00 +00:00
ReimuHakurei 917b9b7170 Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-24 06:19:22 +00:00
ReimuHakurei 42928c2a41 More validation. 2017-05-24 06:19:15 +00:00
snowfag d38f30a7b7 Admins should have same userlevel_str as mods. 2017-05-24 02:18:09 -04:00
ReimuHakurei 3efda25f88 Increment css version 2017-05-24 06:11:20 +00:00
ReimuHakurei 8d393f5917 Make our HTML actually valid. Fix indentation. 2017-05-24 06:06:39 +00:00
ReimuHakurei 16cfcff846 Fix broken search. 2017-05-24 05:45:29 +00:00
ReimuHakurei 1eb805120e Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-24 05:28:40 +00:00
ReimuHakurei 0d839eca35 More layout improvements. 2017-05-24 05:28:30 +00:00
ReimuHakurei 428b0bf8c7 Fix search on mobile. 2017-05-24 05:06:51 +00:00
snowfag aa09191a24 Change guest anon upload glyph. 2017-05-24 00:57:07 -04:00
snowfag 02c7223f09 Move deleted button on edit page. 2017-05-24 00:44:27 -04:00
ReimuHakurei dfe745c635 Add a wider viewport of 1400px for very wide screens (1600px+). 2017-05-24 04:09:16 +00:00
ReimuHakurei 4fa9972252 Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-24 04:08:16 +00:00
ReimuHakurei b0b77775d7 Unfuck the layout, and remove the search update info from the about box on the home page to declutter. 2017-05-24 04:04:32 +00:00
snowfag 34fe2c5c67 change glyphs for buttons. 2017-05-23 22:16:05 -04:00
snowfag fb91b2bbf8 Guest upload visual fix. 2017-05-23 21:32:02 -04:00
snowfag 4a7d8646b6 Update upload/edit buttons. 2017-05-23 21:11:58 -04:00
snowfag 0770822824 Change CRLF to LF. 2017-05-23 21:06:32 -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 a88f6a0847 please incease css version when editing it, fix #ad8a5c0d1c0998d808c4af3745cfc9e5c83f547b 2017-05-23 23:37:06 +02:00
nyaadev 1b76eaea35 fix race condition? 2017-05-23 15:18:17 +02:00
katnyaa ba7e0a7c2e routes: Fix invalid call from previous merge 2017-05-23 13:47:47 +01:00
katnyaa 48df88ce71 Merge pull request #140 from FallenWarrior2k/master
Changed RSS feed to conform to RSS standards and added a namespace
2017-05-23 12:44:03 +00:00
katnyaa aa0d7f702f api: Invalid JSON is a client-side error 2017-05-23 13:19:07 +01:00
snowfag ad8a5c0d1c Update buttons and css. 2017-05-23 01:17:55 -04:00
nyaadev f32d1a0c64 use enumerated index for comment anchors 2017-05-23 02:59:31 +02:00
nyaadev af61e5b1e9 some html + css changes around comments 2017-05-23 02:47:20 +02:00
snowfag f76593a3fb Proper sized default avatar. 2017-05-22 19:08:08 -04:00
nyaadev 76812b0ef0 utf8mb4 for database connection 2017-05-23 00:46:26 +02:00
nyaadev c6d4803e90 Merge branch 'comments' of nyaadevgithub:nyaadevs/nyaa 2017-05-23 00:38:18 +02:00
nyaadev 8ef6e915da shameful late edit: change comment text collation to utf8mb4 2017-05-23 00:36:53 +02:00
snowfag eb0fdbfef5 update message. 2017-05-22 18:32:48 -04:00
nyaadev 3fc347d049 Move posting comments to view_torrent to fix displaying form errors. 2017-05-23 00:04:27 +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
martstern 9bd71af1b2 only allow logged in users to comment 2017-05-22 23:19:36 +02:00
Sn0wCrack c3a637c8eb Added date column t o comments 2017-05-22 23:19:36 +02:00
Sn0wCrack fe6abf33c1 Added ability for users to leave anonymous comments 2017-05-22 23:19:36 +02:00
Sn0wCrack 1a9ebc19ed Added hard delete functionality 2017-05-22 23:19:36 +02:00
Sn0wCrack 6d608ab2f4 Added comments 2017-05-22 23:19:23 +02:00
TheAMM 1e230584ab Re-add generated torrent tracker count limit
As found out in #164, this feature disappeared somewhere along the line.
2017-05-22 23:59:21 +03:00
TheAMM f04c3e1cf3 Remove v1 upload api and update notice 2017-05-22 22:57:37 +03:00
A nyaa developer b241dd5508 Don't generate empty torrent file for torrents without info dict (has_torrent). 2017-05-22 20:08:41 +02:00
katnyaa 607d9b2c92 Change wording for Downloads heading 2017-05-22 15:00:06 +00:00
katnyaa 159d5a5d9e Fix lint errors 2017-05-22 15:12:17 +01:00
TheAMM 7066fb258e Wait, that was no dict at all! Fix v1 api default 2017-05-22 16:54:02 +03:00
TheAMM 0e57378359 API: default to trusted, properly pass CSRF to UploadForm 2017-05-22 16:51:03 +03:00
TheAMM a1c024a342 Re-enable CSRF token for upload & fix API CSRF handling 2017-05-22 16:29:14 +03:00
katnyaa 1016d5be02 Fix typo 2017-05-22 13:02:02 +00:00
aldacron 29e878a1ec fixed api_uploader and reverted backend.py change 2017-05-22 00:36:01 -07:00
aldacron 8fc81b395e if is_trusted is not sent and user is trusted, torrent will marked as trusted unless specified. this also enable backward compat of v1 2017-05-21 22:53:28 -07:00
aldacron c2438f3913 nyaadev is an idiot and broke apiv2 2017-05-21 22:10:05 -07:00
nyaadev 0a258d59e1 temporary ghetto import, will be removed once importing is done. 2017-05-22 01:49:02 +02:00
nyaadev a4c7dd7912 Add ReCaptcha to upload page if user is not logged in.
Bring back CSRF to upload form (Use the upload API)
2017-05-21 19:29:21 +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 740be1a40a Fix upload api handler: default to '' to conform better to WTForm 2017-05-21 12:41:34 +03:00
TheAMM 5408f3e7c4 Update upload api V2 + script for is_trusted 2017-05-21 12:28:37 +03:00
UnKnoWn 31d8d9ec5b Issue #145: Added CSS change for visited links (#149)
* Added CSS change for visited links
2017-05-21 11:38:11 +03:00
Anna-Maria Meriniemi 0475e2948d Merge pull request #148 from nyaadevs/restructure-upload-edit
Restructure upload/edit templates
2017-05-21 10:28:46 +03:00
nyaazi e13235fc97 "Unfix" the page 2017-05-20 23:00:42 +03:00
TheAMM f31efcdaa1 Align fields better, move Anonymous as first flag 2017-05-20 22:50:49 +03:00
TheAMM af0cca2f8c Display full category names on upload/edit category lists 2017-05-20 22:50:40 +03:00