python-gallery/gallery/views/settings.py

44 lines
801 B
Python
Raw Normal View History

2023-03-04 13:45:26 +00:00
"""
OnlyLegs - Settings page
"""
from flask import Blueprint, render_template
from flask_login import login_required, current_user
blueprint = Blueprint('settings', __name__, url_prefix='/settings')
@blueprint.route('/')
@login_required
def general():
2023-03-04 13:45:26 +00:00
"""
General settings page
"""
return render_template('settings/general.html')
@blueprint.route('/server')
@login_required
def server():
2023-03-04 13:45:26 +00:00
"""
Server settings page
"""
return render_template('settings/server.html')
@blueprint.route('/account')
@login_required
def account():
2023-03-04 13:45:26 +00:00
"""
Account settings page
"""
return render_template('settings/account.html')
@blueprint.route('/logs')
@login_required
def logs():
2023-03-04 13:45:26 +00:00
"""
Logs settings page
"""
return render_template('settings/logs.html')