Arylide
0b98b2454a
New help section for IRC and some prod changes I never put in the repo because lazy.
2018-02-22 23:23:53 -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
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
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
nyaadev
0bcd782695
Minor improvements
2017-08-15 01:41:31 +02: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
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
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
Nicolas F
f1df776410
Add alert about reports that nobody will read
...
Apparently some people don't understand what the report button
is for. Adding this small warning can be considered a success even
if it just leads to one less stupid report.
2017-06-27 14:40:58 +02:00
Kfir Hadas
94574d1682
Hide "Report" button for site guests ( #265 )
2017-06-14 20:07:53 +03:00
Kfir Hadas
c70a60b719
UI Fixes ( #246 )
...
* Fix markdown renderer
Use a simple for loop instead of `for (var target of markdownTargets)`, because it's unsupported in IE.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of#Browser_compatibility
* view.html : HTML Fixes
- Remove unmatched `</a>`
- Add missing `</div>`
- Use single quotes in {{ }}
- Closing tags comments
* layout.html
- Use single quotes in {{ }}
- Closing tags comments
* help.html: Convert all `<p>` to `<div>`
HTML spec doesn't allow lists inside `<p>` elements.
* Missing semicolon in `<script>`
2017-06-05 20:23:30 -04:00
Alex Ingram
0a12db74d0
Change report button to btn-xs as a temporary fix.
2017-06-05 00:45:50 -05:00
ReimuHakurei
3e2437bba1
Fix merge mistake.
2017-06-01 11:37:50 +00:00
Alex Ingram
b5e70ba0b0
Merge branch 'master' into focus-report-field
2017-06-01 06:30:34 -05:00
TheAMM
505b4e18bd
Move to markdown-it, render markdown in DOMContentLoaded
...
No more separate <script>s for comments
Adds a link to a GFM cheatsheet on markdown form
Spaces to tabs on "markdownEditors" DOMContentLoaded
2017-06-01 06:28:38 -05:00
Nicolas F
07d45b6223
Focus report reason text field when reporting
...
A small convenience change which by sets the focus to the newly
opened modal dialog's text field if the report button is hit.
This way, people can type away their gripes with the torrent without
having to click into the text field first.
2017-05-30 19:31:28 +02:00
nyaazi
bea63315cd
Merge branch 'master' into reports
2017-05-29 16:20:48 +03:00
TheAMM
32fa021f34
Turn comments icon on search result into link to comments
...
Also cleans up torrent.id/torrent.meta.id
2017-05-28 02:46:04 +03:00
nyaazi
5332ba1a49
Merge branch 'master' into reports
2017-05-26 15:25:02 +03:00
shm0o
8b7712b1d0
templates/view.html: use url_for for the 'edit_torrent' endpoint
2017-05-25 19:33:47 -04:00
TheAMM
3f49f17baa
Add simple OG metadata tags to templates
...
Hello, #185
2017-05-26 01:03:59 +03:00
Kfir Hadas
559602d19b
Fix inverted icons in file list
2017-05-25 22:16:12 +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
Kfir Hadas
e91fdb70da
Strip collapse functionality from file list panel
2017-05-25 16:41:07 +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
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
aldacron
d5e2311c56
Resolves #181
2017-05-24 23:25:21 -07:00
TheAMM
0e89d3f24b
Show torrent hash on torrent page
2017-05-24 17:17:51 +03:00
ReimuHakurei
3418cb6175
More validation.
2017-05-24 06:45:00 +00:00
ReimuHakurei
42928c2a41
More validation.
2017-05-24 06:19:15 +00: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
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
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
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
katnyaa
607d9b2c92
Change wording for Downloads heading
2017-05-22 15:00:06 +00: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