mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Added settings page
Added logging to a .log file Fixed Images loosing colour and rotation on thumbnail generation Added more info to README
This commit is contained in:
parent
a9b13f1e39
commit
828167f762
36 changed files with 819 additions and 131 deletions
32
gallery/settings.py
Normal file
32
gallery/settings.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
from flask import Blueprint, render_template, url_for
|
||||
from werkzeug.exceptions import abort
|
||||
|
||||
from gallery.auth import login_required
|
||||
from gallery.db import get_db
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
now = datetime.now()
|
||||
blueprint = Blueprint('settings', __name__, url_prefix='/settings')
|
||||
|
||||
|
||||
@blueprint.route('/')
|
||||
@login_required
|
||||
def general():
|
||||
return render_template('settings/general.html')
|
||||
|
||||
@blueprint.route('/server')
|
||||
@login_required
|
||||
def server():
|
||||
return render_template('settings/server.html')
|
||||
|
||||
@blueprint.route('/account')
|
||||
@login_required
|
||||
def account():
|
||||
return render_template('settings/account.html')
|
||||
|
||||
@blueprint.route('/logs')
|
||||
@login_required
|
||||
def logs():
|
||||
return render_template('settings/logs.html')
|
Loading…
Add table
Add a link
Reference in a new issue