mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 13:56:55 +02:00

* 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
28 lines
567 B
Python
28 lines
567 B
Python
import flask
|
|
|
|
bp = flask.Blueprint('site', __name__)
|
|
|
|
|
|
# @bp.route('/about', methods=['GET'])
|
|
# def about():
|
|
# return flask.render_template('about.html')
|
|
|
|
|
|
@bp.route('/rules', methods=['GET'])
|
|
def rules():
|
|
return flask.render_template('rules.html')
|
|
|
|
|
|
@bp.route('/help', methods=['GET'])
|
|
def help():
|
|
return flask.render_template('help.html')
|
|
|
|
|
|
@bp.route('/xmlns/nyaa', methods=['GET'])
|
|
def xmlns_nyaa():
|
|
return flask.render_template('xmlns.html')
|
|
|
|
|
|
@bp.route('/trusted', methods=['GET'])
|
|
def trusted():
|
|
return flask.render_template('trusted.html')
|