diff options
author | ubq323 <ubq323> | 2021-06-09 22:07:43 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-09 22:07:43 +0000 |
commit | b85a4e185a9ca96b5b6f0f492326e556e0d63040 (patch) | |
tree | da89ad313863e84c42fffb8de6185764ea1c2c5a /apioforum/templates | |
parent | d4211837747e0fda14cb278c10aad9f7e05e076c (diff) |
editing and deleting and things
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/common.html | 9 | ||||
-rw-r--r-- | apioforum/templates/view_thread.html | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index 0baa1f5..d4178d7 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -1,11 +1,11 @@ -{% macro disp_post(post, thread_id, buttons=False) %} +{% macro disp_post(post, buttons=False) %} <div class="post"> <div class="post-heading"> <span class="post-heading-a"> - {{post.author}} @{{post.created}} #{{post.id}} + <span class="post-heading-em">{{post.author}}</span> {{post.created}} </span> - {% if buttons and post.author == g.user %} <span class="post-heading-b"> + {% if buttons and post.author == g.user %} <a class="actionbutton" href="{{url_for('thread.edit_post',post_id=post.id)}}"> edit @@ -14,8 +14,9 @@ href="{{url_for('thread.delete_post',post_id=post.id)}}"> delete </a> - </span> {% endif %} + #{{post.id}} + </span> </div> <div class="post-content"> {{ caller() }} diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index acd062f..f38cf34 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -7,14 +7,14 @@ {%block content%} <div class="posts"> {% for post in posts %} - {% call disp_post(post, thread_id, True) %} + {% call disp_post(post, True) %} {{ rendered_posts[loop.index0] | safe}} {% endcall %} {% endfor %} </div> {% if g.user %} <form class="new-post" action="{{url_for('thread.create_post',thread_id=thread_id)}}" method="POST"> - <textarea placeholder="your post here..." name="content"></textarea> + <textarea class="new-post-box" placeholder="your post here..." name="content"></textarea> <input type="submit" value="yes"> </form> {% else %} |