From 967da4c39e4768aa3d0c6dca11046f032bcabd9c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 14 Jun 2021 14:54:39 +0000 Subject: remove create thread button when not logged in --- apioforum/templates/view_forum.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apioforum/templates') diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 30fcb64..3aee2ed 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -4,8 +4,11 @@ {%block content%}

welcome to the apioforum

forum rules: do not be a bad person. do not do bad things.

-create new thread -

+{% if g.user %} +

create new thread

+{% else %} +

please log in to create a new thread

+{% endif %}
-- cgit v1.2.3