diff options
author | ubq323 <ubq323> | 2021-06-06 16:54:26 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-06 16:54:26 +0000 |
commit | e2b8fc0582776a366def582d73b686c8968b44c3 (patch) | |
tree | 454bbc31040f1ca14a898d19bb7d749181dfff3f /apioforum/templates/view_thread.html | |
parent | 6a2a05cd0e6aab46ca610dda3c2f408c6b9bd9e2 (diff) |
slightly improve css, add stubs of edit and delete, refactor some things
Diffstat (limited to 'apioforum/templates/view_thread.html')
-rw-r--r-- | apioforum/templates/view_thread.html | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index d9efe86..acd062f 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -1,3 +1,4 @@ +{% from 'common.html' import disp_post %} {% extends 'base.html' %} {% block header %} <h1>{%block title %}{{thread.title}}{% endblock %}</h1> @@ -6,14 +7,9 @@ {%block content%} <div class="posts"> {% for post in posts %} - <div class="post"> - <div class="post_heading"> - {{post.author}} @{{post.created}} - </div> - <div class="post_content"> - {{rendered_posts[loop.index0] | safe}} - </div> - </div> + {% call disp_post(post, thread_id, True) %} + {{ rendered_posts[loop.index0] | safe}} + {% endcall %} {% endfor %} </div> {% if g.user %} @@ -22,6 +18,6 @@ <input type="submit" value="yes"> </form> {% else %} -<p>not logged in</p> +<p>please log in to reply to this thread</p> {% endif %} {% endblock %} |