nyaadev
658eefe42a
fix uncommon exception in report system
...
fix html style issue in admin box on user page
2018-02-06 23:05:37 +01:00
sfan5
418856a4bf
Undo responsive table for reports ( #444 )
...
It was removed on purpose in fdb041c23b
.
Instead just add a CSS rule to fix the table header.
2018-02-01 11:35:04 -08:00
sfan5
0fac1c820d
Update dark theme ( #441 )
...
* Update dark theme CSS
* Use reponsive table on Admin > Reports page
Fixes dark theme styling of the table header.
2018-02-01 10:50:31 -08:00
Nicolas F
0285c12264
commenting: show CAPTCHA to new accounts ( #443 )
...
Basically re-use the upload CAPTCHA code to also do this for
comments.
2018-02-01 10:50:00 -08:00
Anna-Maria Meriniemi
f8a287caa0
Improve and tidy up email blacklist regexes (Hotmail) ( #438 )
...
Because reading warnings is overrated.
This does not fix people using custom domains, but it's more likely
they'll know what's up when their email is thrown into the void.
Fixes #437 .
2018-01-27 01:55:35 +02:00
Nicolas F
362b3e3dfa
user: clean up admin_form HTML ( #400 )
...
Properly scaffold it, remove a superfluous form-group div, and style
the select properly.
2018-01-03 14:28:39 -08:00
Anna-Maria Meriniemi
3941a0b9b3
Quick and dirty comment list for moderators to look at ( #421 )
2017-12-04 15:51:31 +02:00
JodanJodan
052a038763
Add tabindexes to login elements ( #420 )
...
Fixes issue with password managers (e.g. KeePass) tabbing to 'Forgot your password?' link instead of password field.
2017-12-02 13:31:51 +02:00
Anna-Maria Meriniemi
1f31427e5e
Alert hotmail users of the void on register page ( #418 )
...
* Alert hotmail users of the void on register page
* Words
2017-11-22 16:40:23 -08:00
TheAMM
e183d420ea
Fix CF-stripped newlines for comments
2017-11-10 05:50:57 +02:00
TheAMM
faf7548cd0
Convert edited timestamp to local time
2017-11-10 05:50:50 +02:00
Shane
72c997173c
[Schema+config change] Comment editing ( #396 )
...
* Comment editing
* Optional time limit for comment editing
2017-11-05 16:26:30 +02:00
Arylide
ca7dc276e2
Fix some text and revert a js thing
2017-10-20 22:24:36 -07:00
Nicolas F
b4c9d7cd1b
Fix filter dropdowns if JS is disabled ( #389 )
...
Before bootstrap-select is loaded, a small JS piece replaces the
class for the pickers with the appropriate bootstrap-select classes.
If there is no JS, the dropdowns will stay as form-control.
2017-10-20 21:01:36 -07:00
Nicolas F
4019343d50
Implement torrent nuking ability for mods ( #377 )
...
* Implement torrent nuking ability for mods
This deletes all torrents of a specific user.
A current caveat is that it will delete both sukebei and nyaa torrents,
but will only leave a log entry in the current flavour's log.
Also did some bootstrap untangling on the user view page.
* Per-flavour logging
Hopefully this works. Maybe.
* Tracker API: chunk into 100-element sublists
* isort
* Restrict nuking to superadmins
Also do a lint.sh.
2017-10-16 18:17:12 -07:00
Anna-Maria Meriniemi
de1fd2f1bc
[Config change] Upload ratelimit for non-trusted uploaders ( #384 )
...
* Implement upload ratelimit for non-trusted uploaders
Users may upload X torrents in Y minutes after which they
will have to wait Z minutes between uploads.
* Show torrent period count when ratelimited
* Only ratelimit new accounts
2017-10-09 18:41:18 -07:00
Anna-Maria Meriniemi
9e87e810af
[Config change] Password reset by email ( #381 )
...
* Password reset by email
Adds endpoint, templates, email templates, forms
* Timeout password reset request in six hours
2017-10-08 04:34:40 +03:00
Anna-Maria Meriniemi
6d09920abd
Update email verification, add Mailgun backend ( #380 )
...
Changes config.example.py!
2017-10-07 17:31:32 -07:00
Nicolas F
19eaa2c532
Fix timezone awareness for account creation time ( #378 )
2017-10-06 22:36:13 +03:00
Anna-Maria Meriniemi
1e5f61ddf7
[Config change] Require recaptcha of new uploaders ( #376 )
...
* Reorganize config.example.py, add ACCOUNT_RECAPTCHA_AGE
* Require new accounts to pass recaptcha on upload
Based on ACCOUNT_RECAPTCHA_AGE in config.
2017-10-04 16:05:35 -07:00
Nicolas F
214952e7b6
Disable report button on empty reason ( #374 )
...
Previously, people couldn't quite tell you needed to give a report
reason. Now we disable the submit button until there is a reason,
and flask.flash() if someone manages to submit an empty reason
anyway.
2017-10-03 17:03:22 -07:00
Arylide
0eea181020
Fix search form typo and some HTML
2017-10-03 16:57:40 -07:00
nyaadev
4091cba837
fix mysql error and bad colors in css
2017-09-19 01:32:45 +02:00
Anna-Maria Meriniemi
c5d705210d
Read-only maintenance mode setting for config.py ( #356 )
...
Disables all POSTs, optionally allowing users to log in (without updating last login date)
Blocked POSTs will redirect to the GET endpoint if possible, otherwise to referrer or in last case, home page.
API requests will get a plaintext message with 405 status code.
2017-09-04 18:16:52 -04:00
sfan5
4995f95ebd
Improve dark theme ( #357 )
...
* Add 'dark' class to <body> if dark theme is activated
* Make dark theme suck considerably less
2017-09-03 18:18:39 -04:00
Anna-Maria Meriniemi
04a8ff95d2
Words ( #355 )
...
* Add words
* Add more words
Words are nice
2017-09-01 18:14:11 -04:00
nyaadev
57a71be7b8
minor changes
2017-08-31 14:20:34 +02:00
Alex Ingram
df288bfadd
Add Firefox search provider. ( #353 )
...
* Add Firefox search provider.
* Add search provider to layout.
* Add search thing for Sukebei, too.
* Fix layout.
2017-08-30 23:52:50 -04:00
A nyaa developer
f8a314df4f
Better bans ( #341 )
...
* better bans
* put jinja2 template into correct file
2017-08-25 18:53:35 -04:00
Nicolas F
48d4217f02
help page: Add help for deletion ( #340 )
...
Some people may not realise that they can do this themselves,
and maybe they'll consult the help page before abusing the report
button.
2017-08-19 06:38:32 -04:00
nyaadev
0bcd782695
Minor improvements
2017-08-15 01:41:31 +02: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
ab6193d01d
Update Gravatar ( #313 )
...
* Update help.html with a section about user avatars
* Update Gravatar implementation to use the rating feature
2017-07-27 16:03:13 -04:00
Kfir Hadas
93f94023d1
Move delete_comment and submit_report into blueprint
2017-07-27 14:14:00 +03:00
Kfir Hadas
ef56e54521
Move torrent magnet and torrent download into 'torrents' blueprint
2017-07-27 14:14:00 +03:00
Kfir Hadas
9fef343c1b
Move torrent edit and upload into 'torrents' blueprint
...
Move supporting functions and variables into other files
* nyaa.views.torrents:
- _create_upload_category_choices
* nyaa.backend:
- get_category_id_map
2017-07-27 14:14:00 +03: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
eccb0ebdff
Move '/' and '/rss' routes into 'main' 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
Kfir Hadas
3913d8cea2
Move admin routes into blueprint
...
and update templates
Routes:
* /reports
* /adminlog
2017-07-27 14:14:00 +03:00
Kfir Hadas
f316353176
Move account routes into blueprint ( #292 )
...
and update templates,
and remove unused imports
Routes:
* /login
* /logout
* /register
* /profile
2017-07-27 14:14:00 +03:00
Kfir Hadas
911fbc317f
Move static routes into a blueprint
...
and update templates
Routes:
* /help
* /rules
* /xmlns/nyaa
* /about (commented out)
2017-07-27 14:14:00 +03:00
Arylide
dc627bf398
Revert "upload page: use alerts, add alert about rules ( #304 )"
...
This reverts commit c5ce99c3f3
.
2017-07-24 20:03:58 -07:00
Nicolas F
c5ce99c3f3
upload page: use alerts, add alert about rules ( #304 )
...
This changes the tracker announce URL message to be one of those
bootstrap alert bubbles, and adds an additional warning which tells
people to read the rules and not upload off-topic crap.
2017-07-24 16:46:39 +03:00
Arylide
6988daf803
HTML Changes
2017-07-22 20:31:50 -07:00
TheAMM
a50d39ccaa
Improve RSS feed title (show term, torrent/magnet)
2017-07-22 21:54:28 +03:00
TheAMM
c31749c1d5
Add link for site-revision vs Github master comparison in footer
...
Quality of Life. What new features?
2017-07-22 21:41:48 +03:00
TheAMM
6b71cf101e
Add simple info in RSS <description>
...
Allows puny humans to gather some information from the RSS feed
Fixes #299
(... and nobody will know!)
2017-07-22 21:37:53 +03:00
Arylide
2e8e548067
Revert "Autofocus on search input box"
...
This reverts commit c9389cb888
.
2017-07-17 17:02:19 -07:00