|
|
|
@ -58,10 +58,10 @@
|
|
|
|
|
|
|
|
|
|
<a href="{{ url_for('comment.create', post_id=post.id) }}"><button class="btn btn-warning">Leave a Comment</button></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if session.auth.preferred_username == post.submitter %}
|
|
|
|
|
<hr><a href="{{ url_for('post.delete', id=post.id) }}"><button class="btn btn-danger">Delete Post</button></a>
|
|
|
|
|
{% if "auth" in session %}
|
|
|
|
|
{% if session.auth.preferred_username == post.submitter %}
|
|
|
|
|
<hr><a href="{{ url_for('post.delete', id=post.id) }}"><button class="btn btn-danger">Delete Post</button></a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|