diff --git a/app/templates/v2/screens/antrag_detail.html b/app/templates/v2/screens/antrag_detail.html index 38f6383..13ed1fc 100644 --- a/app/templates/v2/screens/antrag_detail.html +++ b/app/templates/v2/screens/antrag_detail.html @@ -275,6 +275,23 @@ "bestätigt": "#2da44e", "sammel": "#0969da", } %} + {# Konsistenz-Hinweis: GWÖ-Empfehlung vs. tatsächlicher Beschluss #} + {% set verdict_text = (antrag.verdict_title or '') | lower %} + {% set first_outcome = (antrag.plenum_votes[0].ergebnis or '') | lower %} + {% set rec_supports = ('unterstützen' in verdict_text) or ('befürworten' in verdict_text) %} + {% set rec_rejects = 'ablehnen' in verdict_text %} + {% set out_passed = first_outcome in ['angenommen', 'bestätigt'] %} + {% set out_failed = first_outcome == 'abgelehnt' %} + {% set conflict = (rec_supports and out_failed) or (rec_rejects and out_passed) %} + {% set aligned = (rec_supports and out_passed) or (rec_rejects and out_failed) %} + {% if conflict or aligned %} +
+ {% if conflict %}Mehrheit kontra GWÖ-Empfehlung{% else %}Mehrheit deckt sich mit GWÖ-Empfehlung{% endif %} + — Empfohlen: {{ antrag.verdict_title }}; Beschluss: {{ first_outcome | capitalize }}. +
+ {% endif %} {% for v in antrag.plenum_votes %}