add mod panel view

This commit is contained in:
2025-11-27 15:28:17 +03:00
parent 4d88b5c24c
commit fc9ae63471
4 changed files with 19 additions and 2 deletions

View File

@@ -49,3 +49,10 @@ def create_reset_pass(user_id):
})
return redirect(url_for('users.reset_link_login', key=key))
@bp.get('/panel')
@login_required
@mod_only('topics.all_topics')
def panel():
return render_template('mod/panel.html')

View File

@@ -13,7 +13,6 @@ bp = Blueprint("topics", __name__, url_prefix = "/topics/")
@bp.get("/")
def all_topics():
admin = Users.find({"id": 1})
return render_template("topics/topics.html", topic_list = Topics.get_list(), active_threads = Topics.get_active_threads())