aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-08 01:16:59 +0000
committercitrons <citrons>2021-08-08 01:16:59 +0000
commit0cd850265b567a53921da70bf6d07e4330500f34 (patch)
treeb92c968e01be9c71848aa415ad4a6d25cd7ffae7
parent4588c1526d6cb73b85f10e2c177d2686ebc9e26c (diff)
in the forum settings page, the "unlisted?" box is checked if the forum is already unlisted
-rw-r--r--apioforum/forum.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/apioforum/forum.py b/apioforum/forum.py
index 108f0ba..084c75d 100644
--- a/apioforum/forum.py
+++ b/apioforum/forum.py
@@ -361,12 +361,14 @@ def forum_config_page(forum, create=False):
if create:
name = ""
desc = ""
+ unlisted = False
else:
name = forum['name']
desc = forum['description']
+ unlisted = forum['unlisted']
cancel_link = url_for('forum.view_forum',forum_id=forum['id'])
return render_template("edit_forum.html",create=create,
- name=name,description=desc,cancel_link=cancel_link)
+ name=name,description=desc,unlisted=unlisted,cancel_link=cancel_link)
@forum_route("edit",methods=["GET","POST"])
@requires_bureaucrat