{% set _report_owner = _owner if _owner is defined else "" %}
{% set _report_owner_name = _owner_name if _owner_name is defined else "" %}
{% set _report_class = _class if _class is defined else "post-action-btn" %}
{% if not user or user['uid'] != _report_owner %}
<button type="button" class="{{ _report_class }} report-btn" data-report-type="{{ _type }}" data-report-uid="{{ _uid }}" aria-label="Report this {{ _type }}" title="Report"{{ guest_disabled(user) }}><span class="icon" aria-hidden="true">&#x1F6A9;</span><span class="label"> Report</span></button>
{% if user and _report_owner_name %}
<form method="POST" action="/block/{{ _report_owner_name }}" class="inline-form">
    <button type="submit" class="{{ _report_class }} block-btn" data-confirm="Block {{ _report_owner_name }}? Their content is hidden from you everywhere except their profile."><span class="icon" aria-hidden="true">&#x1F6AB;</span><span class="label"> Block</span></button>
</form>
{% endif %}
{% endif %}
