{% extends "base.html" %} {% block title %}Abstimmung{% endblock %} {% block content %}
← Alle Abstimmungen

📊 {{ poll.question }} {% if poll.status == "open" %}Läuft{% else %}Beendet{% endif %}

# {{ poll.channel_name or "?" }} · gestartet {{ poll.created_at | datetime }}{% if poll.created_by %} von {{ poll.created_by }}{% endif %} · {% if poll.status == "open" %}{% if poll.ends_at %}endet {{ poll.ends_at | datetime }}{% else %}ohne Ende{% endif %}{% else %}beendet {{ poll.ended_at | datetime }}{% endif %} {% if poll.message_url %}· Im Discord öffnen{% endif %}

{% if poll.description %}

{{ poll.description }}

{% endif %}

Ergebnis · {{ poll.voters }} {{ "Person" if poll.voters == 1 else "Personen" }}

{% set total = poll.counts | sum %} {% set top = poll.counts | max %}
{% for o in poll.options %} {% set n = poll.counts[loop.index0] %} {% set pct = (100 * n / total) | round | int if total else 0 %}
{{ o.emoji or loop.index ~ "." }} {{ o.label }}{{ pct }} % · {{ n }}
{% endfor %}

{{ "Mehrere Stimmen pro Person (bis " ~ poll.max_choices ~ ")" if poll.max_choices > 1 else "Eine Stimme pro Person" }} · {{ "anonym" if poll.anonymous else "nicht anonym" }} · Ergebnis {{ "live sichtbar" if poll.live_results else "erst am Ende sichtbar" }}

{% if poll.votes is defined and poll.votes %}

Wer hat was gewählt

{% for v in poll.votes %} {% endfor %}
PersonAntwortWann
{{ v.user_name }}{{ poll.options[v.option_idx].label if v.option_idx < poll.options | length else "?" }}{{ v.voted_at | datetime }}
{% elif poll.anonymous %}

Anonyme Abstimmung – wer was gewählt hat, wird nirgends angezeigt.

{% endif %}
{% if poll.status == "open" %}
{% endif %}
{% endblock %}