show "publish" button

master
Aevann 2024-10-28 21:56:26 +03:00
parent 4c7001cc79
commit 038aa4ccf6
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{% if v and v.id == p.author_id and p.draft %}
{% if p.draft and v and (v.id == p.author_id or v.admin_level >= PERMS['PUBLISH_OTHERS_POSTS']) %}
<button type="button" class="list-inline-item" data-areyousure="postToastReload(this,'/publish/{{p.id}}')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)"><i class="fas fa-globe"></i>Publish</button>
{% endif %}

View File

@ -1,4 +1,4 @@
{% if v.id == p.author_id and p.draft %}
{% if p.draft and (v.id == p.author_id or v.admin_level >= PERMS['PUBLISH_OTHERS_POSTS']) %}
<button type="button" class="nobackground btn-link btn-block btn-lg text-left text-muted" data-areyousure="postToastReload(this,'/publish/{{p.id}}')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-dismiss="modal">
<i class="fas fa-globe text-center text-muted mr-2"></i>Publish
</button>