# {{ self::t!("polls") }}
{% for event in polls.iter() %}
{% if let Some(title) = event.content.lines().next() %}
## {{ title }}
{% endif %}
{{ event.content | strip_hashtags }}
{# Retrieve the poll's options and list them #}
{% let options = event.tags.filter_standardized(TagKind::Custom(Cow::Borrowed("option"))) %}
{%- for option in options %}
{%- match option %}
{%- when (TagStandard::PollOption(poll_option)) %}
=> /polls/{{event.id}}/respond/{{poll_option.id}} {{ poll_option.text }}
{%- else %}
{%- endmatch %}
{%- endfor %}

=> /polls/{{event.id}} {{ self::t!("view_poll_results") }}
{%- endfor %}
