2022-03-18 19:10:59 +00:00
{% if v and v.id==p.author_id and p.private %}
2022-04-01 18:38:31 +00:00
< form action = "/publish/{{p.id}}" method = "post" >
< input type = "hidden" name = "formkey" , value = "{{v.formkey}}" >
2022-06-24 02:53:31 +00:00
< button class = "list-inline-item text-small p-0 m-0 mr-3 border-0 nobackground font-weight-bold" type = "submit" onclick = "disable(this)" > < i class = "fas fa-globe" > < / i > Publish< / button >
2022-04-01 18:38:31 +00:00
< / form >
2022-03-02 00:05:30 +00:00
{% endif %}
2022-07-18 06:43:20 +00:00
{% if v and ((not p.ghost and v.admin_level >= PERMS['VOTES_VISIBLE']) or v.id == AEVANN_ID) %}< a class = "list-inline-item" href = "/votes/{{p.fullname}}" > < i class = "fas fa-arrows-v" > < / i > Votes< / a > {% endif %}
2022-03-18 19:05:54 +00:00
2022-03-02 00:05:30 +00:00
{% if v %}
2022-05-26 23:08:23 +00:00
< a class = "list-inline-item text-muted d-none d-md-inline-block" role = "button" data-bs-toggle = "modal" data-bs-target = "#awardModal" data-url = '/award/post/{{p.id}}' > < i class = "fas fa-gift fa-fw" > < / i > Give Award< / a >
2022-03-02 00:05:30 +00:00
{% endif %}
2022-07-18 02:46:03 +00:00
< a class = "list-inline-item copy-link" role = "button" data-clipboard-text = "{% if SITE == 'rdrama.net' %}https://rdrama.co{{p.shortlink}}{% else %}{{p.permalink}}{% endif %}" > < i class = "fas fa-copy" > < / i > Copy link< / a >
2022-03-02 00:05:30 +00:00
{% if v %}
2022-07-16 18:51:48 +00:00
< a id = "subscribe-{{p.id}}" class = "{% if p.id in v.subscribed_idlist %}d-none{% endif %} list-inline-item" role = "button" onclick = "post_toast(this,'/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}','d-none')" > < i class = "fas fa-eye" > < / i > Subscribe< / a >
< a id = "unsubscribe-{{p.id}}" class = "{% if p.id not in v.subscribed_idlist %}d-none{% endif %} list-inline-item" role = "button" onclick = "post_toast(this,'/unsubscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}','d-none')" > < i class = "fas fa-eye-slash" > < / i > Unsubscribe< / a >
2022-03-02 00:05:30 +00:00
{% endif %}
{% if v %}
2022-07-16 18:51:48 +00:00
< a id = "save-{{p.id}}" class = "{% if p.id in v.saved_idlist %}d-none{% endif %} list-inline-item" role = "button" onclick = "post_toast(this,'/save_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}','d-none')" > < i class = "fas fa-save" > < / i > Save< / a >
< a id = "unsave-{{p.id}}" class = "{% if not p.id in v.saved_idlist %}d-none{% endif %} list-inline-item" role = "button" onclick = "post_toast(this,'/unsave_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}','d-none')" > < i class = "fas fa-save" > < / i > Unsave< / a >
2022-04-01 18:38:31 +00:00
< a class = "list-inline-item" role = "button" data-bs-toggle = "modal" data-bs-dismiss = "modal" data-bs-target = "#reportPostModal" onclick = "report_postModal('{{p.id}}')" > < i class = "fas fa-flag" > < / i > Report< / a >
2022-03-02 00:05:30 +00:00
{% endif %}
{% if v and v.id==p.author_id %}
2022-04-01 18:38:31 +00:00
{% if request.path.startswith('/@') %}
2022-06-23 23:07:47 +00:00
< a id = "pin-profile-{{p.id}}" class = "{% if p.is_pinned %}d-none{% endif %} list-inline-item text-muted" role = "button" onclick = "post_toast(this,'/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Pin to profile< / a >
< a id = "unpin-profile-{{p.id}}" class = "{% if not p.is_pinned %}d-none{% endif %} list-inline-item text-muted" role = "button" onclick = "post_toast(this,'/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Unpin from profile< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
2022-06-23 23:07:47 +00:00
< a id = "undelete2-{{p.id}}" class = "{% if not p.deleted_utc %}d-none{% endif %} list-inline-item" role = "button" onclick = "post_toast(this,'/undelete_post/{{p.id}}', 'delete2-{{p.id}}', 'undelete2-{{p.id}}','d-none');document.getElementById('post-{{p.id}}').classList.remove('deleted')" > < i class = "fas fa-trash-alt" > < / i > Undelete< / a >
2022-04-01 18:38:31 +00:00
< a id = "delete2-{{p.id}}" class = "{% if p.deleted_utc %}d-none{% endif %} list-inline-item" role = "button" data-bs-toggle = "modal" data-bs-dismiss = "modal" data-bs-target = "#deletePostModal" onclick = "delete_postModal('{{p.id}}')" > < i class = "fas fa-trash-alt" > < / i > Delete< / a >
{% endif %}
{% if v %}
< a class = "list-inline-item" role = "button" data-bs-toggle = "dropdown" aria-expanded = "false" > < i class = "fas fa-ellipsis-h fa-fw" > < / i > < / a >
< ul class = "dropdown-menu" >
{% if v.admin_level %}
2022-06-23 23:07:47 +00:00
< a id = "distinguish-{{p.id}}" class = "dropdown-item {% if p.distinguish_level %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}','d-none')" > < i class = "fas fa-crown" > < / i > Distinguish< / a >
< a id = "undistinguish-{{p.id}}" class = "dropdown-item {% if not p.distinguish_level %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}','d-none')" > < i class = "fas fa-crown" > < / i > Undistinguish< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
{% if v.admin_level > 1 %}
2022-06-23 23:07:47 +00:00
< a id = "pin-{{p.id}}" class = "dropdown-item {% if p.stickied %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/sticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Pin< / a >
< a id = "unpin-{{p.id}}" class = "dropdown-item {% if not p.stickied %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/unsticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Unpin< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
2022-04-03 16:20:31 +00:00
2022-07-01 23:11:48 +00:00
{% if p.sub and v.mods(p.sub) %}
< a id = "hole-pin-{{p.id}}" class = "dropdown-item {% if p.hole_pinned %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/hole_pin/{{p.id}}','hole-pin-{{p.id}}','hole-unpin-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Pin to /h/{{p.sub}}< / a >
< a id = "hole-unpin-{{p.id}}" class = "dropdown-item {% if not p.hole_pinned %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/hole_unpin/{{p.id}}','hole-pin-{{p.id}}','hole-unpin-{{p.id}}','d-none')" > < i class = "fas fa-thumbtack fa-rotate--45" > < / i > Unpin fron /h/{{p.sub}}< / a >
{% endif %}
2022-04-29 19:19:54 +00:00
{% if v.admin_level > 1 or v.id == p.author_id %}
2022-06-23 23:07:47 +00:00
< a id = "club-{{p.id}}" class = "dropdown-item {% if p.club %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/toggle_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}','d-none')" > < i class = "fas fa-eye-slash" > < / i > Mark club< / a >
< a id = "unclub-{{p.id}}" class = "dropdown-item {% if not p.club %}d-none{% endif %} list-inline-item text-info" role = "button" onclick = "post_toast(this,'/toggle_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}','d-none')" > < i class = "fas fa-eye" > < / i > Unmark club< / a >
2022-04-29 19:19:54 +00:00
{% endif %}
2022-04-01 18:38:31 +00:00
{% if v.admin_level > 1 %}
{% if "/reported/" in request.path %}
{% if v.id != p.author.id %}< a class = "dropdown-item list-inline-item text-danger" role = "button" onclick = "post_toast(this,'/ban_post/{{p.id}}')" > < i class = "fas fa-ban" > < / i > Remove< / a > {% endif %}
< a class = "dropdown-item list-inline-item text-success" role = "button" onclick = "post_toast(this,'/unban_post/{{p.id}}')" > < i class = "fas fa-check" > < / i > Approve< / a >
{% else %}
2022-06-23 23:07:47 +00:00
{% if v.id != p.author.id %}< a id = "remove-{{p.id}}" class = "dropdown-item {% if p.is_banned %}d-none{% endif %} list-inline-item text-danger" role = "button" onclick = "post_toast(this,'/ban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}','d-none')" > < i class = "fas fa-ban" > < / i > Remove< / a > {% endif %}
< a id = "approve-{{p.id}}" class = "dropdown-item {% if not p.is_banned %}d-none{% endif %} list-inline-item text-success" role = "button" onclick = "post_toast(this,'/unban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}','d-none')" > < i class = "fas fa-check" > < / i > Approve< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
{% if p.oauth_app %}
< a class = "dropdown-item list-inline-item" href = "{{p.oauth_app.permalink}}" > < i class = "fas fa-code" > < / i > API App< / a >
{% endif %}
{% endif %}
{% if v.id != p.author_id and not p.ghost %}
2022-06-23 23:07:47 +00:00
< a id = "unblock-{{p.id}}" class = "dropdown-item text-success list-inline-item {% if not p.is_blocking %}d-none{% endif %}" role = "button" onclick = "post_toast(this,'/settings/unblock?username={{p.author_name}}','block-{{p.id}}','unblock-{{p.id}}','d-none')" > < i class = "fas fa-eye text-success" > < / i > Unblock user< / a >
2022-04-01 18:38:31 +00:00
2022-06-23 23:07:47 +00:00
< a id = "block-{{p.id}}" class = "dropdown-item list-inline-item text-danger {% if p.is_blocking %}d-none{% endif %}" role = "button" onclick = "post_toast(this,'/settings/block?username={{p.author_name}}','block-{{p.id}}','unblock-{{p.id}}','d-none')" > < i class = "fas fa-eye-slash text-danger" > < / i > Block user< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
{% if p.sub and v.mods(p.sub) %}
2022-07-10 18:13:21 +00:00
< a class = "dropdown-item list-inline-item text-danger" role = "button" onclick = "post_toast(this,'/kick/{{p.id}}')" > < i class = "fas fa-sign-out text-danger" > < / i > Kick< / a >
2022-04-01 18:38:31 +00:00
{% if not p.author.mods(p.sub) %}
2022-06-23 23:07:47 +00:00
< a id = "exile-{{p.id}}" class = "{% if p.author.exiled_from(p.sub) %}d-none{% endif %} dropdown-item list-inline-item text-danger" role = "button" onclick = "post_toast(this,'/exile/post/{{p.id}}','exile-{{p.id}}','unexile-{{p.id}}','d-none')" > < i class = "fas fa-campfire text-danger" > < / i > Exile user< / a >
< a id = "unexile-{{p.id}}" class = "{% if not p.author.exiled_from(p.sub) %}d-none{% endif %} dropdown-item list-inline-item text-success" role = "button" onclick = "post_toast(this,'/h/{{sub}}/unexile/{{p.author_id}}','exile-{{p.id}}','unexile-{{p.id}}','d-none')" > < i class = "fas fa-campfire text-success" > < / i > Unexile user< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
{% endif %}
{% if v.id==p.author_id or v.admin_level > 1 %}
2022-06-23 23:07:47 +00:00
< a id = "mark-{{p.id}}" class = "dropdown-item {% if p.over_18 %}d-none{% endif %} list-inline-item text-danger" role = "button" onclick = "post_toast(this,'/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}','d-none')" > < i class = "fas fa-eye-evil" > < / i > Mark +18< / a >
< a id = "unmark-{{p.id}}" class = "dropdown-item {% if not p.over_18 %}d-none{% endif %} list-inline-item text-success" role = "button" onclick = "post_toast(this,'/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}','d-none')" > < i class = "fas fa-eye-evil" > < / i > Unmark +18< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
{% if v.admin_level > 1 and v.id != p.author_id %}
< a id = "ban-{{p.id}}" class = "dropdown-item {% if p.author.is_suspended %}d-none{% endif %} list-inline-item text-danger" id = "exile-comment-{{p.id}}" role = "button" data-bs-toggle = "modal" data-bs-target = "#banModal" onclick = "banModal('/post/{{p.id}}', '{{p.author.id}}', '{{p.author_name}}')" > < i class = "fas fa-user-slash text-danger fa-fw" > < / i > Ban user< / a >
2022-06-23 23:07:47 +00:00
< a id = "unban-{{p.id}}" class = "dropdown-item {% if not p.author.is_suspended %}d-none{% endif %} list-inline-item text-danger" id = "unexile2-user-{{p.id}}" role = "button" onclick = "post_toast(this,'/unban_user/{{p.author_id}}','ban-{{p.id}}','unban-{{p.id}}','d-none')" > < i class = "fas fa-user-slash" > < / i > Unban user< / a >
2022-04-01 18:38:31 +00:00
{% endif %}
< / ul >
{% endif %}