Commit Graph

386 Commits

Author SHA1 Message Date
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
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
TheAMM 752a5a1f95 Clean up models.User.level helpers 2017-05-20 21:59:24 +03:00
TheAMM 2ccf23a1f3 Clean up models.User.level helpers 2017-05-20 21:56:22 +03:00
nyaazi 1705bfd6ea Using the url_for function 2017-05-20 21:53:23 +03:00
nyaazi 04c9ef6685 Redundant query 2017-05-20 15:02:26 +03:00
nyaazi ec0f8000d7 Usage of WTForms for report action 2017-05-20 14:23:29 +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
TheAMM 4b4a7b9830 Support BitComet empty directories (ew)
This will allow most (if not all) torrents that have been rejected by 'Malformed torrent metadata (path part is empty)'

Adjusts _validate_bytes to disable empty check
Adds the empty check to file tree parsing
2017-05-20 10:12:32 +03:00
Simon Veit Engmann cc957ccc96 Changed RSS feed to conform to RSS standards and added a namespace 2017-05-20 01:13:04 +02:00
TheAMM 358c75036b Fix RSS link generation on user pages
Also removes a debug print (oops #2)
2017-05-19 23:20:15 +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
TheAMM 68b5bc045b Add "magnets" parameter for RSS, slightly clean up home and view_user 2017-05-19 20:11:20 +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
TheAMM e7614bcef1 Merge branch 'update-rss-template' of https://github.com/sharkykh/nyaa into sharkykh-update-rss-template 2017-05-19 18:31:10 +03:00
nyaadev 375dcf15ef Switch to CDN for bootstrap-select and font-awesome css
Remove superfluous static files
2017-05-19 15:23:26 +02:00
A nyaa developer 35f6c8b202 Merge pull request #134 from CounterPillow/cdnfix
Use cdnjs with SRI and HTTPS for all CDN JS files
2017-05-19 15:08:23 +02:00
nyaadev 2a1f8fab87 pep8 2017-05-19 14:36:33 +02:00
TheAMM e554f9ae97 Fix category name on icon titletext, fixes #131
Also reformats the cat_id if-logic
2017-05-19 15:24:09 +03: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
Nicolas F c31f3d251b Use cdnjs with SRI and HTTPS for all CDN JS files
SRI means that there's a lesser risk for XSS, and CDNJS itself
recommends always requesting them over HTTPS in their "About" page.

This closes #133
2017-05-19 08:43:49 +02:00
Mart 02fa705330 Merge pull request #107 from UnKnoWn-Consortium/patch-2
Make profile page more profile
2017-05-19 00:20:41 -04:00
UnKnoWn 63d01e430f Adjusting margin 2017-05-18 23:17:49 +08:00
UnKnoWn 4bc3abe317 Left aligning the user info 2017-05-18 23:15:17 +08:00
kyamiko e582c74efa Fixed possible crash in api_handler.py 2017-05-18 00:31:28 -04:00
Anna-Maria Meriniemi d7309884fe Merge pull request #119 from nyaadevs/upload_api_v2
Upload API V2
2017-05-18 22:26:38 +03:00
TheAMM e5fce168a0 Upload API V2 2017-05-18 16:46:07 +03:00
A nyaa developer d936fcf09d Merge pull request #59 from jprandomdev/deprecated_forms
replaced deprecated Classes by their newer versions
2017-05-18 15:20:40 +02:00
TheAMM 6bfb65172c Add helper functions to models.User 2017-05-18 15:28:51 +03:00
aldacron ddd4d8e44c Fixed MOTD spacing and changed to core js assets to cdns 2017-05-18 00:38:33 -07:00
aldacron 67758e1eef updated example again 2017-05-18 00:27:27 -07:00
kyamiko 746ea8b63d Comment debug print 2017-05-18 00:06:53 -04:00
kyamiko 785a8db0c8 Updated api/upload 2017-05-17 23:56:36 -04:00
tipuch 6765929c7d - replaced deprecated fields by their newer counterparts. 2017-05-17 22:23:36 -04:00
UnKnoWn 0677b121d6 Update profile.html 2017-05-18 04:45:37 +08:00
UnKnoWn 2ef053dec8 Update routes.py 2017-05-18 04:37:22 +08:00
UnKnoWn a1e90c96d9 Update profile.html 2017-05-18 04:33:53 +08:00
UnKnoWn 9a4583b87d Update profile.html 2017-05-18 04:33:40 +08:00
UnKnoWn efff63c5c0 A more structured look for profile 2017-05-18 04:31:42 +08:00
Kfir Hadas 0c3198da7a css space to tab 2017-05-17 20:14:36 +03:00
Kfir Hadas e8885df2b4 Drag&Drog in upload 2017-05-17 20:14:26 +03:00
Nazo 40d7540058 Handle softbreaks properly with commonmark, fixes #100 2017-05-17 18:54:17 +03:00
Yukikaze 88311e0551 Merge pull request #94 from Ricardo1991/master
Fix torrent view text overflowing
2017-05-17 08:04:42 -07:00
Ricardo Ribeiro 5d0162fe54 Restrict rules with more selectors 2017-05-17 15:34:08 +01:00
martstern 04047a5712 make admin unable to set own user class, fix missing post method 2017-05-17 09:17:08 -04:00
martstern 931b2b0b83 added user class display and editing 2017-05-17 06:02:15 -04:00
aldacron 40c311f80a fix registration 2017-05-17 02:36:27 -07:00
aldacron 08217cee2f changed filter bar for clarity 2017-05-17 01:43:04 -07:00
aldacron cee5d815d4 fixed line break 2017-05-17 01:33:54 -07:00
aldacron d0f9481b62 Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-17 01:29:50 -07:00
aldacron e98b7702d8 updated motd for clarity 2017-05-17 01:29:18 -07:00
TheAMM 8d66d6c82d Include search terms in page title
Fixes #25
2017-05-17 11:27:54 +03:00
aldacron 291789445c memes 2017-05-17 01:06:18 -07:00
aldacron a2ca6eb2ac changed cache control from 1 hr to 5 mins 2017-05-17 01:05:55 -07:00
aldacron 2590dfcc95 updated motd 2017-05-17 00:59:57 -07:00
aldacron 5a1e44faff added success message after torrent edit 2017-05-17 00:56:51 -07:00
aldacron acc5da09b0 updated MOTD for new search awareness 2017-05-17 00:53:26 -07:00
aldacron 8ffcbca4d5 improved profile page user flow. clears data on success and shows current email. also, flashes success message if successful 2017-05-17 00:53:07 -07:00
Johnny Ding c61bba8f30 Merge pull request #80 from nathancyam/mobile_search
Issue #35: Mobile search improvements
2017-05-17 00:13:25 -07:00
Johnny Ding 7d967d221e Merge pull request #58 from JSFernandes/master
Remove sourceMappingURL from bootstrap-dark.min.css
2017-05-17 00:12:23 -07:00
Johnny Ding ad17558ec3 Merge pull request #53 from sharkykh/pep8
Fix PEP8 errors and warnings
2017-05-17 00:08:42 -07:00
Johnny Ding 03d658fcef Merge pull request #91 from Open-Anime-Database-Consortium/master
User profile page UI and logic change
2017-05-16 23:58:27 -07:00
UnKnoWn 90c1314b59 Fixing default tab 2017-05-17 14:56:22 +08:00
Johnny Ding 0093b2bf4f Merge pull request #76 from sharkykh/fix-file-list
Fix padding for single file in torrent file list
2017-05-16 23:53:43 -07:00
Johnny Ding c5e76b17b6 Merge pull request #93 from sharkykh/tracker-link-style
Put tracker URL in <kbd>
2017-05-16 23:52:33 -07:00
UnKnoWn cfb3fafd64 Merge remote-tracking branch 'refs/remotes/nyaadevs/master' 2017-05-17 14:51:47 +08:00
Johnny Ding de5a15b9a0 Merge pull request #88 from nyaadevs/commonmark
Switch marked to commonmark
2017-05-16 23:51:23 -07:00
Ricardo Ribeiro 192777c462 Fix typo 2017-05-17 07:31:31 +01:00
Ricardo Ribeiro 88dc797d87 Replace spacebars for tabs 2017-05-17 07:30:03 +01:00
Ricardo Ribeiro c7ae533034 Fix torrent view text overflowing 2017-05-17 07:29:46 +01:00
Kfir Hadas d27dd7eb51 Put tracker URL in <kbd>
Looks nicer
2017-05-17 09:23:52 +03:00
UnKnoWn 1f63cdea0a Update forms.py 2017-05-17 05:40:30 +08:00
UnKnoWn a0f6f93a80 Include style for the new tabs in profile page 2017-05-17 05:37:06 +08:00
UnKnoWn f044170acb Update profile.html 2017-05-17 05:35:01 +08:00
UnKnoWn 1ac211276e Added tabs to make profile more organized 2017-05-17 05:19:00 +08:00
UnKnoWn 6792716903 Current password required for all profile action
Current password is required for all actions on profile (email change, password change, any to be added later, etc...)
2017-05-17 05:13:55 +08:00
UnKnoWn 1fb249be35 Enforce password check on email change
Updated route handler to enforce current password check on all account details.
2017-05-17 05:10:25 +08:00
Johnny Ding e530e28bbd Merge pull request #77 from nyaadevs/pinned-tab
Add Safari pinned-tab icon
2017-05-16 13:06:12 -07:00
Johnny Ding 033e83562f Merge pull request #79 from nyaadevs/legacy-args
Support legacy arguments in search route
2017-05-16 13:04:52 -07:00
Nazo 2523201757 Use spaces instead of tabs 2017-05-16 21:32:54 +03:00
Nazo 6f61970559 Switch marked to commonmark 2017-05-16 21:29:22 +03:00
UnKnoWn eedc6c170d Added tabs to make profile more organized 2017-05-17 02:00:01 +08:00
Ricardo Ribeiro d8ef29755e Remove trailing spacebar on search_results 2017-05-16 15:08:47 +01:00
Ricardo Ribeiro 1f0f8cbeae Add full torrent name to link "title"
Now on ElasticSearch results as well
2017-05-16 14:49:15 +01:00
TheAMM dcad0572c5 RSS: add a simple one-hour Cache-Control 2017-05-16 15:59:03 +03:00
aldacron 99b59e57f5 revert motd, need to fix es 2017-05-16 04:27:36 -07:00
Nathan Yam 2faeb51550 Add vendor prefixes 2017-05-16 21:20:12 +10:00
aldacron 1924a2fa85 Updated MOTD for ES enabling 2017-05-16 04:12:55 -07:00
Nathan Yam 0f9336cac5 Format css nicely 2017-05-16 21:12:19 +10:00
Nathan Yam d3a4809cb9 Fix text content length 2017-05-16 20:29:37 +10:00
Nathan Yam 51b93004d0 Fix the order to match desktop 2017-05-16 20:01:38 +10:00
Kfir Hadas dbd3229956 PEP8 routes.py (E501) 2017-05-16 12:56:12 +03:00
Nathan Yam 36416a3597 Fix search bar presentation
Need to fix filters and categories though. Looks
terrible.
2017-05-16 19:53:38 +10:00
Kfir Hadas 2c9ed4cb94 PEP8 search.py (E501) 2017-05-16 12:52:48 +03:00
Kfir Hadas 4e9409fb30 AutoPEP8 (after elasticsearch merge) 2017-05-16 12:47:06 +03:00
sharkykh 9ac56ba3d7 AutoPEP8 2017-05-16 12:43:55 +03:00
sharkykh 60b7029fcc Remove merge conflict indicators 2017-05-16 12:43:33 +03:00
sharkykh 571b7f2930 Ignore routes import line 2017-05-16 12:43:33 +03: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 a3be6ee89f PEP8 api_handler.py (E501)
E501 line too long
2017-05-16 12:43:33 +03:00
sharkykh b0325bc681 PEP8 api_handler.py (E265, E266)
E265 block comment should start with '# '
E266 too many leading '#' for block comment
2017-05-16 12:43:33 +03:00
sharkykh beb5be9989 8: PEP8 routes.py (E265, E266, E713)
E265	block comment should start with ‘# ‘
E266	too many leading ‘#’ for block comment
E713	test for membership should be ‘not in’
2017-05-16 12:43:33 +03:00
sharkykh 1b99908283 PEP8 routes.py (E501)
line too long
2017-05-16 12:42:32 +03:00
sharkykh a79c0f8a93 PEP8 (a run of lint.sh) 2017-05-16 12:42:12 +03:00
Kfir Hadas c691087730 Use formatted file size
since that what was used by Nyaa.
2017-05-16 12:34:58 +03:00
sharkykh 837ecde795 Wrap description in a CDATA tag 2017-05-16 12:34:58 +03:00
sharkykh e2eb3fb33c Category (main+sub) 2017-05-16 12:33:44 +03:00
sharkykh d4621a23a7 Add bare torrent hash
lambda is probably not the best way to go,
suggestions for improvement are welcome!
2017-05-16 12:31:35 +03:00
sharkykh 3b87337c71 RSS: Add elements & refactor
description, size, seeders, leechers, downloads
2017-05-16 12:30:49 +03:00
nyaadev0 472b78bac1 Support legacy arguments in search route 2017-05-16 04:27:13 -05:00
nyaadev0 a87c192435 Add Safari pinned-tab icon 2017-05-16 04:11:02 -05:00
Kfir Hadas 261490daa7 Fix padding for single file in torrent file list 2017-05-16 11:53:13 +03:00
aldacron 00c768c722 merged elasticsearch, let's hope this doesn't break shit 2017-05-16 01:28:55 -07:00
aldacron 1d0177480e updated time display 2017-05-16 01:04:08 -07:00
aldacron 2005174358 finished up rss, changed rss behavior to include pre-defined trackers only, also cleaned up debug statements 2017-05-16 00:46:25 -07:00
martstern a19666b495 shrink and put user_class menu and button on same line 2017-05-16 03:13:22 -04:00
aldacron 899aa01473 hooked up ES... 90% done, need to figure out how to generate magnet URIs 2017-05-15 23:51:58 -07:00
martstern 8a87ca93a5 styled user info better, show user class on profile 2017-05-16 00:20:40 -04:00
aldacron c2c547e786 some more elasticsearch work, including index mapping and analyzer 2017-05-15 11:14:01 -07: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
sharkykh 5c75424243 Fix 'Link' column header width
Set optimal width of 70px
2017-05-15 11:54:28 +03:00
TheAMM 7f767072cf Fix icon spacing in torrent filelist
As noted in #66
2017-05-15 09:50:58 +03:00
sharkykh 6be5326f45 Reformat code some more 2017-05-15 09:37:02 +03:00
sharkykh bd1a9f5cf4 Reformat 2017-05-15 09:34:22 +03:00
sharkykh dd1f1b6834 Nicer looking file list (basic table) 2017-05-15 09:28:48 +03:00
queue 85ba16545f es: fix highlighting without query term
I like highlighting.
2017-05-14 22:26:44 -06:00
Johnny Ding 8bca32a626 Merge pull request #50 from qqueue/elasticsearchin
elasticsearch-based search (WIP)
2017-05-14 20:06:33 -07:00
aldacron c5d77f996b Resolve #57 2017-05-14 17:43:56 -07:00
TheAMM 2c013090e0 Replace newlines with html entities in torrent description
Fixes #60
On production, Cloudflare minifies our HTML which removes blank newlines from the source and therefore the description.
Replacing them with HTML entities fixes the problem.
2017-05-14 23:28:22 +03:00
TheAMM 16c30413dc Remove extra b'e' in torrent generation
Fixes #45
Flexget checks for trailing data after bdecoding, which most decoders don't do - so this went unnoticed.
2017-05-14 20:14:49 +03:00
JSFernandes 7fd7d30722 Remove sourceMappingURL from bootstrap-dark.min.css
Some browsers, such as Firefox 53.0 try to download the specified file,
to improve development experience. Since we don't host this file, some
users were making a request resulting in 404 when loading the page in
dark mode.
2017-05-14 15:24:20 +01:00
TheAMM c1df153e98 Don't enforce site tracker as first, just that it exists on the torrent
Fixes issue #42
Also adds logic for private torrents requiring site tracker as the main tracker (otherwise there's no point on uploading them on the site)
Changes upload.html wording to reflect the requirement to have the tracker, not necessarily as the first one.
2017-05-14 14:22:17 +03:00
Anna-Maria Meriniemi 22cea7af17 Merge pull request #54 from sharkykh/footer-commit-hash
Display the site's commit hash
2017-05-14 13:55:55 +03:00
Anna-Maria Meriniemi 8d0d7cfac8 Merge pull request #52 from bittebitte/patch-1
Autofocus username field
2017-05-14 13:24:20 +03:00
sharkykh 2a71fd8158 Display the site's commit hash 2017-05-14 12:02:39 +03:00
aldacron a7d3c5a4de Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-14 01:40:10 -07:00