This commit is contained in:
Mr Chen
2024-11-20 16:40:06 +08:00
parent 0eed51452a
commit 8ae54e30d0
20 changed files with 109 additions and 31 deletions
+5 -2
View File
@@ -13,8 +13,11 @@ from flask import Blueprint, render_template
from admin.user_login_check import panel_login_required
blueprint = Blueprint('monitor', __name__, url_prefix='/monitor', template_folder='../../templates/default')
import thisdb
blueprint = Blueprint('monitor', __name__, url_prefix='/monitor', template_folder='../../templates')
@blueprint.route('/index', endpoint='index')
@panel_login_required
def index():
return render_template('monitor.html')
name = thisdb.getOption('template', default='default')
return render_template('%s/monitor.html' % name)