{% extends "base.html" %} {% import "macros.html" as m %} {% block title %}Messages{% endblock %} {% block content %}

Messages ({{ rows | length }}){% if q %} matching “{{ q }}”{% endif %}

Every outbound interaction with a body. Outcome: what you set on the message, else {{ outcomes[0] }} when a reply from the same contact was logged afterwards, {{ outcomes[-1] }} when nothing came back within {{ window }} days, unknown until then. Totals: {% for s in message_statuses %}{{ counts.get(s, 0) }} {{ s }}{% if not loop.last %} · {% endif %}{% endfor %}.

{{ m.filter_form('message-filters', '/messages', active, q, sort, dir) }}
{% for col in filter_columns %}{% endfor %}{% for col in filter_columns %}{% endfor %} {% for r in rows %} {% for f in custom_fields_for('interaction') if f.shows_in('messages') %} {% endfor %} {# Closed: the one-line preview. Open: the full text only, with a "hide" label in the summary (CSS swaps them). #} {% else %} {% endfor %}
{{ col.label }} {{ m.sort_links(col, sort, dir, sort_url) }}
{{ m.filter_control(col, active, 'message-filters') }}
{{ fmt_datetime(r.date).replace('T', ' ') }} {{ r.company_name }} {% if r.contact_slug %}{{ r.contact }}{% else %}{{ r.contact }}{% endif %} {{ r.channel }} {{ r.country }} {{ r.stage }} {{ r.status }}{% if not r.explicit and r.status != 'unknown' %} (auto){% endif %} {{ r.uses }}{{ f.display(r.extra.get(f.key)) }}
{{ r.preview[:110] }}{% if r.preview | length > 110 %}…{% endif %}hide
{{ r.body }}
{% for value in outcomes + [''] if value != r.explicit %}
{% endfor %} edit
No messages logged yet. Log an outbound interaction with a body and it shows up here.
{% endblock %}