parent
1287c96b86
commit
dcaa6bc394
|
@ -242,11 +242,16 @@
|
|||
</div>
|
||||
{% else %}
|
||||
<div id="post-body" class="post-body mt-3">
|
||||
<div id="post-text"><code>[Deleted by author.]</code></div>
|
||||
<div id="post-text">
|
||||
{{p.realbody(v) | safe}}
|
||||
{% if p.is_banned and p.ban_reason %}
|
||||
<div class="text-removed mb-0">removed by @{{p.ban_reason}} (Admin)</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if v and (v.id==p.author_id or v.admin_level >= PERMS['POST_EDITING']) and not v.is_suspended %}
|
||||
{% if v and (v.id==p.author_id and not v.is_suspended) or v.admin_level >= PERMS['POST_EDITING'] %}
|
||||
<div id="edit-post-body-{{p.id}}" class="d-none comment-write collapsed child">
|
||||
<form id="post-edit-form-{{p.id}}" action="/edit_post/{{p.id}}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="formkey" value="{{v|formkey}}">
|
||||
|
|
Loading…
Reference in New Issue