Commit Graph

13 Commits

Author SHA1 Message Date
Nicolas F 16814d6eb7 Add trusted application functionality (#533)
* Add trusted application functionality

This lets users apply for trusted status, given certain minimum
requirements. Moderators can then review the applications, giving
a recommendation, and administrators can accept or reject them.

If an application is accepted or rejected, the user receives an
e-mail about it.

Markdown images are not rendered in applications to prevent browsers
from sending automatic requests to untrusted webservers.

Users who have had their application rejected cannot re-apply for a set
amount of days.

* minor fixes
2019-08-10 18:18:44 -07: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
nyaadev 57a71be7b8 minor changes 2017-08-31 14:20:34 +02:00
TheAMM 80587e02fe Default description to "" in field renderer
Otherwise we get None on upload page
2017-06-01 06:28:38 -05:00
TheAMM f4fb9fc065 Render markdown text field manually in the template
We need to escape newlines in the editor as well!
2017-06-01 06:28:38 -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
ReimuHakurei 42928c2a41 More validation. 2017-05-24 06:19:15 +00: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
martstern a19666b495 shrink and put user_class menu and button on same line 2017-05-16 03:13:22 -04:00
Nathan Yam de4891dfc6 Add well styling to preview content 2017-05-14 16:14:18 +10:00
Nathan Yam fabe0f6fec Issue #10 Add markdown preview editor
These changes add a macro that creates the relevant HTML markup for a
markdown editor. In the main.js file, we bind the relevant elements with
the marked library, so users can see their contents in a HTML format.
2017-05-14 15:33:08 +10:00
Nathan Yam d3ad2503ae Add markdown editor macro 2017-05-14 15:33:08 +10:00
nyaadev 00d65e312c Initial commit. 2017-05-12 20:51:49 +02:00