{% extends "base.html" %} {% block title %}Import Queue{% endblock %} {% block styles %} {% endblock %} {% block content %}

Import Queue

{% set pending_count = pending_rows | selectattr('status', 'ne', 'unimplemented') | list | length %} {{ pending_count }} pending email{{ 's' if pending_count != 1 }}
{% if not pending_rows %}

No emails pending. Run make poll to fetch new ones from the mail folder.

{% else %}
{% for row in pending_rows %} {% set clickable = row.status not in ('unimplemented',) %} {% endfor %}
Vendor Date Status
{{ row.vendor or row.sender }} {{ row.received_at.strftime('%d %b %Y') if row.received_at else '—' }} {{ row.status | replace('_', ' ') }}
{% endif %} {% if history_rows %}
{{ history_rows | length }} recently imported
{% for row in history_rows %} {% endfor %}
Vendor Date Status
{{ row.vendor or row.sender }} {{ row.received_at.strftime('%d %b %Y') if row.received_at else '—' }} {{ row.status | replace('_', ' ') }}
{% endif %}
{% endblock %}