2023-03-04 13:45:26 +00:00
|
|
|
"""
|
|
|
|
OnlyLegs - Settings page
|
|
|
|
"""
|
|
|
|
from flask import Blueprint, render_template
|
2023-04-05 16:57:07 +00:00
|
|
|
from flask_login import login_required
|
2023-03-01 23:29:34 +00:00
|
|
|
|
2023-04-07 12:35:30 +00:00
|
|
|
blueprint = Blueprint("settings", __name__, url_prefix="/settings")
|
2023-03-01 23:29:34 +00:00
|
|
|
|
|
|
|
|
2023-04-07 12:35:30 +00:00
|
|
|
@blueprint.route("/")
|
2023-03-01 23:29:34 +00:00
|
|
|
@login_required
|
|
|
|
def general():
|
2023-03-04 13:45:26 +00:00
|
|
|
"""
|
|
|
|
General settings page
|
|
|
|
"""
|
2023-04-07 12:35:30 +00:00
|
|
|
return render_template("settings/general.html")
|
2023-03-01 23:29:34 +00:00
|
|
|
|
2023-03-11 22:14:03 +00:00
|
|
|
|
2023-04-07 12:35:30 +00:00
|
|
|
@blueprint.route("/server")
|
2023-03-01 23:29:34 +00:00
|
|
|
@login_required
|
|
|
|
def server():
|
2023-03-04 13:45:26 +00:00
|
|
|
"""
|
|
|
|
Server settings page
|
|
|
|
"""
|
2023-04-07 12:35:30 +00:00
|
|
|
return render_template("settings/server.html")
|
2023-03-01 23:29:34 +00:00
|
|
|
|
2023-03-11 22:14:03 +00:00
|
|
|
|
2023-04-07 12:35:30 +00:00
|
|
|
@blueprint.route("/account")
|
2023-03-01 23:29:34 +00:00
|
|
|
@login_required
|
|
|
|
def account():
|
2023-03-04 13:45:26 +00:00
|
|
|
"""
|
|
|
|
Account settings page
|
|
|
|
"""
|
2023-04-07 12:35:30 +00:00
|
|
|
return render_template("settings/account.html")
|
2023-03-01 23:29:34 +00:00
|
|
|
|
2023-03-11 22:14:03 +00:00
|
|
|
|
2023-04-07 12:35:30 +00:00
|
|
|
@blueprint.route("/logs")
|
2023-03-01 23:29:34 +00:00
|
|
|
@login_required
|
|
|
|
def logs():
|
2023-03-04 13:45:26 +00:00
|
|
|
"""
|
|
|
|
Logs settings page
|
|
|
|
"""
|
2023-04-07 12:35:30 +00:00
|
|
|
return render_template("settings/logs.html")
|