{% if _poll %}
<div class="poll" data-poll-uid="{{ _poll.uid }}">
    <div class="poll-question">{{ render_title(_poll.question) }}</div>
    <div class="poll-options" role="group" aria-label="Poll options">
        {% for opt in _poll.options %}
        <button type="button" class="poll-option{% if _poll.my_choice == opt.uid %} chosen{% endif %}" data-option-uid="{{ opt.uid }}" aria-pressed="{% if _poll.my_choice == opt.uid %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}>
            <span class="poll-option-bar" style="--poll-pct: {% if user %}{{ opt.pct }}{% else %}0{% endif %}%;"></span>
            <span class="poll-option-label">{{ render_title(opt.label) }}</span>
            <span class="poll-option-meta">
                <span class="poll-option-check" aria-hidden="true"{% if _poll.my_choice != opt.uid %} hidden{% endif %}>&#x2713;</span>
                <span class="poll-option-pct">{% if user %}{{ opt.pct }}%{% endif %}</span>
            </span>
        </button>
        {% endfor %}
    </div>
    <div class="poll-total">{% if user %}{{ _poll.total }} vote{% if _poll.total != 1 %}s{% endif %}{% else %}Log in to vote{% endif %}</div>
</div>
{% endif %}
