Aucune proposition lore.
Lancer : python3 lore_enricher.py --faction grand_krewe sur Ampère
{% endif %}
{% for p in proposals %}
#{{ p.id }}
{{ p.status | upper }}
{{ p.change_type }}
{{ p.faction_slug }}
{% if p.field_path %}{{ p.field_path }}{% endif %}
{{ p.created_at.strftime('%d/%m %H:%M') if p.created_at else '' }}
{{ p.rationale or '(pas de justification)' }}
Original
{{ p.original_text or '(ajout — pas de texte original)' }}
Proposé
{{ p.proposed_text }}
{% if p.status == 'pending' %}
{% elif p.status == 'modified' and p.modified_text %}
Texte modifié accepté
{{ p.modified_text }}
{% endif %}
{% if p.status in ('modified', 'accepted') %}
{% for msg in proposal_threads.get(p.id, []) %}
{{ '👤 Toi' if msg.role=='user' else '🤖 LLM' }} — {{ msg.created_at.strftime('%d/%m %H:%M') if msg.created_at else '' }}
{{ msg.content }}
{% endfor %}
{% endif %}
{% endfor %}
{% endblock %}