{% if v and ((not p.ghost and v.admin_level >= PERMS['VOTES_VISIBLE']) or v.id == AEVANN_ID) %}<aclass="list-inline-item"href="/votes/{{p.fullname}}"><iclass="fas fa-arrows-v"></i>Votes</a>{% endif %}
<buttontype="button"id="subscribe-{{p.id}}"class="{% if p.id in v.subscribed_idlist %}d-none{% endif %} list-inline-item"data-click2="postToastSwitch(this,'/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}','d-none')"onclick="areyousure(this)"><iclass="fas fa-eye"></i>Subscribe</button>
<buttontype="button"id="unsubscribe-{{p.id}}"class="{% if p.id not in v.subscribed_idlist %}d-none{% endif %} list-inline-item"onclick="postToastSwitch(this,'/unsubscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}','d-none')"><iclass="fas fa-eye-slash"></i>Unsubscribe</button>
<buttontype="button"id="save-{{p.id}}"class="{% if p.id in v.saved_idlist %}d-none{% endif %} list-inline-item"onclick="postToastSwitch(this,'/save_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}','d-none')"><iclass="fas fa-save"></i>Save</button>
<buttontype="button"id="unsave-{{p.id}}"class="{% if not p.id in v.saved_idlist %}d-none{% endif %} list-inline-item"onclick="postToastSwitch(this,'/unsave_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}','d-none')"><iclass="fas fa-save"></i>Unsave</button>
<buttontype="button"id="pin-profile-{{p.id}}"class="{% if p.is_pinned %}d-none{% endif %} list-inline-item text-muted"onclick="postToastSwitch(this,'/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}','d-none')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Pin to profile</button>
<buttontype="button"id="unpin-profile-{{p.id}}"class="{% if not p.is_pinned %}d-none{% endif %} list-inline-item text-muted"onclick="postToastSwitch(this,'/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}','d-none')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Unpin from profile</button>
{% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] %}
<buttontype="button"id="distinguish-{{p.id}}"class="dropdown-item {% if p.distinguish_level %}d-none{% endif %} list-inline-item text-info"onclick="postToastSwitch(this,'/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}','d-none')"><iclass="fas fa-crown"></i>Distinguish</button>
<buttontype="button"id="undistinguish-{{p.id}}"class="dropdown-item {% if not p.distinguish_level %}d-none{% endif %} list-inline-item text-info"onclick="postToastSwitch(this,'/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}','d-none')"><iclass="fas fa-crown"></i>Undistinguish</button>
{% endif %}
{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
<buttontype="button"id="pin-{{p.id}}"class="dropdown-item {% if p.stickied and not p.stickied_utc %}d-none{% endif %} list-inline-item text-info"onclick="pinPost(this, '{{p.id}}')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Pin {% if p.stickied_utc %}permanently{% else %}for 1 hour{% endif %}</button>
<buttontype="button"id="unpin-{{p.id}}"class="dropdown-item {% if not p.stickied %}d-none{% endif %} list-inline-item text-info"onclick="unpinPost(this, '{{p.id}}')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Unpin</button>
{% endif %}
{% if p.sub and v.mods(p.sub) %}
<buttontype="button"id="hole-pin-{{p.id}}"class="dropdown-item {% if p.hole_pinned %}d-none{% endif %} list-inline-item text-info"onclick="postToastSwitch(this,'/hole_pin/{{p.id}}','hole-pin-{{p.id}}','hole-unpin-{{p.id}}','d-none')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Pin to /h/{{p.sub}}</button>
<buttontype="button"id="hole-unpin-{{p.id}}"class="dropdown-item {% if not p.hole_pinned %}d-none{% endif %} list-inline-item text-info"onclick="postToastSwitch(this,'/hole_unpin/{{p.id}}','hole-pin-{{p.id}}','hole-unpin-{{p.id}}','d-none')"><iclass="fas fa-thumbtack fa-rotate--45"></i>Unpin from /h/{{p.sub}}</button>
{% endif %}
{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
<buttontype="button"id="remove-{{p.id}}"class="dropdown-item {% if p.is_banned %}d-none{% endif %} list-inline-item text-danger"onclick="removePost(this,'{{p.id}}','remove-{{p.id}}','approve-{{p.id}}','d-none')"><iclass="fas fa-ban"></i>Remove</button>
<buttontype="button"id="approve-{{p.id}}"class="dropdown-item {% if not p.is_banned and request.path != '/admin/reported/posts' %}d-none{% endif %} list-inline-item text-success"onclick="approvePost(this,'{{p.id}}','remove-{{p.id}}','approve-{{p.id}}','d-none')"><iclass="fas fa-check"></i>Approve</button>
{% endif %}
{% if v.id != p.author_id and not p.ghost %}
<buttontype="button"id="unblock-{{p.id}}"class="dropdown-item text-success list-inline-item {% if not p.is_blocking %}d-none{% endif %}"onclick="postToastSwitch(this,'/settings/unblock?username={{p.author.username}}','block-{{p.id}}','unblock-{{p.id}}','d-none')"><iclass="fas fa-eye text-success"></i>Unblock user</button>