{% extends "base.html" %} {% from "components/ui.html" import ago, card, empty, filter_bar, pager %} {% block title %}Sends · {{ APP_NAME }}{% endblock %} {% block heading %}Sends{% endblock %} {% block subheading %}
Who sent from which account to whom, never what
{% endblock %} {% block content %}
{{ filter_bar(bar, problem) }}
{% if records %}
{% if not one_account %}{% endif %} {% for r in records %} {% if not one_account %}{% endif %} {% endfor %}
WhenAccountWhoToOutcomeHow
{{ ago(r.created_at) }}{{ emails.get(r.account_id, r.account_id) }} {% if r.user_id in names %}{{ names[r.user_id] }}{% else %}{{ r.user_id[:16] }}…{% endif %} {% if r.credential_id %}token {{ r.credential_id[:16] }}…{% else %}the UI{% endif %} {{ r.recipients | join(", ") }} {% if r.refused %}refused: {{ r.refused | join(", ") }}{% endif %} {% if r.outcome == "sent" %}sent {% elif r.outcome == "denied" %}denied {% else %}failed{% endif %} {% if r.error %}{{ r.error }}{% endif %} {{ "draft" if r.operation == "send_draft" else "message" }}
{% else %} {{ empty("Nothing sent" ~ (" that matches" if bar.chips else " yet, or no account you may audit") ~ ".") }} {% endif %}
{{ pager(pages) }}
{% endblock %}