{# Reusable component to display talk feedback with scales and free-text. Required variables: - talk: The Talk object - event: The Event object - feedback_data: Dict with keys: - interesting: {1: count, 2: count, 3: count, 4: count} - mastery: {1: count, 2: count, 3: count, 4: count} - questions: {1: count, 2: count, 3: count, 4: count} - material: {1: count, 2: count, 3: count, 4: count} - good: [list of text] - improvements: [list of text] - free_text: [list of text] - chart_prefix: String prefix for chart IDs (e.g., 'talk-123') Optional variables: - show_links: Boolean, default True. Set to False to hide links (for public pages) #} {% set show_links = show_links if show_links is defined else True %} {# Helper macro for scale table #} {% macro scale_table(counts) %} {% set scale_labels = { 1: 'auf jeden Fall', 2: 'eher ja', 3: 'eher nein', 4: 'auf keinen Fall' } %}
| Antwort | Anzahl |
|---|---|
| {{ scale_labels[scale] }} | {{ counts[scale] }} |
Noch kein Feedback für diesen Talk vorhanden.
{% endif %}