From 10fb40ceaefa4c014bbc67d4b908af2163344f0c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 2 Jun 2021 17:02:09 +0000 Subject: view threads apparently --- apioforum/templates/base.html | 39 +++++++++++++++++++----------------- apioforum/templates/view_thread.html | 33 +++++++++++++++--------------- 2 files changed, 38 insertions(+), 34 deletions(-) diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 28fd055..d4ecb54 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -4,26 +4,29 @@ {%block title %}{% endblock %} + - - - {% block header %}{% endblock %} - {% for msg in get_flashed_messages() %} -
{{ msg }}
- {% endfor %} - {%block content %}{% endblock %} +
+ + {% for msg in get_flashed_messages() %} +
{{ msg }}
+ {% endfor %} + +
+ {% block header %}{% endblock %} +
+ + {%block content %}{% endblock %} +
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index 718df4e..615aee0 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -1,25 +1,26 @@ {% extends 'base.html' %} {% block header %} -

{%block title %}thread{% endblock %}

+

{%block title %}{{thread.title}}{% endblock %}

{% endblock %} {%block content%} -

{{thread.title}}

-

by {{thread.creator}}

-
-{% for post in posts %} -
{{post.author}} {{post.created}}
-
{{rendered_posts[loop.index0] | safe}}
-{% else %} -
there weren't
-
any posts
-{% endfor %} -
+
+ {% for post in posts %} +
+
+
{{post.author}}
+
{{post.created}}
+
+
+ {{rendered_posts[loop.index0] | safe}} +
+
+ {% endfor %} +
{% if g.user %} -

loggedi n as {{ g.user }}

-
- - + + +
{% else %}

not logged in

-- cgit v1.2.3