feat(#171): Heuchelei-Marker bei NEIN-Stimmen mit hoher Programm-Treue

Neben jeder NEIN-Fraktion erscheint ein dezentes ⚠ wenn der eigene
Wahlprogramm-Score >= 7 lag. Tooltip nennt den Score. Macht im Detail
sichtbar wer gegen das eigene Programm stimmt — gleicher Befund wie im
Stimmverhalten-Tab, aber pro Antrag punktgenau.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dotty Dotter 2026-05-06 09:36:59 +02:00
parent b6b0ce752a
commit db0c0681c6

View File

@ -294,7 +294,11 @@
{% endif %} {% endif %}
{% if v.fraktionen_nein %} {% if v.fraktionen_nein %}
<div><span style="color:#cf222e;font-weight:700;">Nein:</span> <div><span style="color:#cf222e;font-weight:700;">Nein:</span>
{% for f in v.fraktionen_nein %}<span style="display:inline-block;padding:1px 6px;background:color-mix(in srgb,#cf222e 15%,transparent);color:#a40e26;border-radius:3px;margin-right:3px;">{{ f }}</span>{% endfor %} {% for f in v.fraktionen_nein %}
{% set fs_match = (antrag.fraktions_scores or []) | selectattr('fraktion', 'equalto', f) | list %}
{% set wp_score_match = fs_match[0].wahlprogramm.score | float if fs_match else 0 %}
<span style="display:inline-block;padding:1px 6px;background:color-mix(in srgb,#cf222e 15%,transparent);color:#a40e26;border-radius:3px;margin-right:3px;">{{ f }}{% if wp_score_match >= 7 %}<span style="margin-left:4px;cursor:help;" title="Diese Fraktion stimmte mit Nein, obwohl der Antrag gut zum eigenen Wahlprogramm passt (WP-Score {{ '%.0f' | format(wp_score_match) }}/10)."></span>{% endif %}</span>
{% endfor %}
</div> </div>
{% endif %} {% endif %}
{% if v.fraktionen_enthaltung %} {% if v.fraktionen_enthaltung %}