{% extends "base.html" %} {% block title %}Messagerie - GMAO{% endblock %} {% block content %}
Dernier mail Outlook {% if last_outlook_mail %} {{ last_outlook_mail.subject[:40] }}
{{ last_outlook_mail.from_name }} - {{ last_outlook_mail.received_at.strftime('%d/%m %H:%M') if last_outlook_mail.received_at else '' }} {% else %} Aucun mail {% endif %}
Dernier message ENT {% if last_ent_message %} {{ last_ent_message.subject[:40] }}
{{ last_ent_message.author }} - {{ last_ent_message.received_at.strftime('%d/%m %H:%M') if last_ent_message.received_at else '' }} {% else %} Aucun message {% endif %}
Derniere interpretation {% if last_interpretation %} {{ last_interpretation.subject[:40] }}
{{ last_interpretation.from }} - {{ last_interpretation.date.strftime('%d/%m %H:%M') if last_interpretation.date else '' }} {% else %} Aucune interpretation {% endif %}
Interpretations a traiter {{ all_interpretations|length }} (Outlook: {{ outlook_count }} | ENT: {{ ent_count }})
{% if all_interpretations %}
{% for interp in all_interpretations %} {% endfor %}
Source Date Expediteur Sujet Description suggeree Equipement Confiance Actions
{% if interp.source == 'outlook' %} Outlook {% else %} ENT {% endif %} {{ interp.date.strftime('%d/%m %H:%M') if interp.date else '' }} {{ interp.from[:25] }} {{ interp.subject[:40] }} {{ interp.description[:60] }} {{ interp.equipment[:20] }} {% set conf = (interp.confidence * 100)|round|int %}
{% else %}

Aucune interpretation en attente

{% endif %}
10 derniers emails Outlook
{% if outlook_mails %}
{% for mail in outlook_mails %}
{{ mail.from_name }}
{{ mail.subject[:60] }}
{% if mail.has_interpretation %} interprete {% endif %}
{{ mail.received_at.strftime('%d/%m %H:%M') if mail.received_at else '' }}
{% endfor %}
{% else %}

Aucun email Outlook importe

{% endif %}
10 derniers messages ENT
{% if ent_messages %}
{% for msg in ent_messages %}
{{ msg.author }}
{{ msg.subject[:60] }}
{% if msg.has_interpretation %} interprete {% endif %}
{{ msg.received_at.strftime('%d/%m %H:%M') if msg.received_at else '' }}
{% endfor %}
{% else %}

Aucun message ENT importe

{% endif %}
{% endblock %}