From 9960239de2011dc286190a851a3dc035963b109a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 14 Jun 2021 19:14:04 +0000 Subject: add first parts of config thread page --- apioforum/templates/view_thread.html | 1 + apioforum/thread.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index f38cf34..ddc45b8 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -5,6 +5,7 @@ {% endblock %} {%block content%} +configure
{% for post in posts %} {% call disp_post(post, True) %} diff --git a/apioforum/thread.py b/apioforum/thread.py index 630cb33..f520d8e 100644 --- a/apioforum/thread.py +++ b/apioforum/thread.py @@ -105,4 +105,12 @@ def edit_post(post_id): flash(err) return render_template("edit_post.html",post=post) +@bp.route("//config",methods=["GET","POST"]) +def config_thread(thread_id): + db = get_db() + thread = db.execute("select * from threads where id = ?",(thread_id,)).fetchone() + if request.method == "POST": + abort(418) + return render_template("config_thread.html", thread=thread) + -- cgit v1.2.3