diff options
author | ubq323 <ubq323> | 2021-06-25 20:02:50 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-25 20:02:50 +0000 |
commit | 3c2a773095e23a75d2fcb1ca92699228313f6715 (patch) | |
tree | c33536b085d6e3df19ba2bf1e4969e4b806df41c /apioforum/templates | |
parent | 604f533989840b929549e9c76a7ba707345d4341 (diff) |
view post source button
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/common.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index ff20644..8fcf5fe 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -17,13 +17,18 @@ {% endif %} </span> <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</a> + {% if buttons %} + {% if post.author == g.user %} + <a class="actionbutton" + href="{{url_for('thread.edit_post',post_id=post.id)}}">edit</a> + <a class="actionbutton" + href="{{url_for('thread.delete_post',post_id=post.id)}}">delete</a> + {% endif %} <a class="actionbutton" - href="{{url_for('thread.delete_post',post_id=post.id)}}">delete</a> + href="{{url_for('thread.view_post',post_id=post.id)}}">src</a> {% endif %} - <a class="post-anchor-link" href="{{post_url(post)}}">#{{post.id}}</a> + + <a class="post-anchor-link" href="{{post_url(post)}}">#{{post.id}}</a> </span> </div> <div class="post-content md"> |