{% extends "base.html" %} {% set active = "strategos" %} {% block title %}DAT — Diplomatic Activity Tracker{% endblock %} {% block head %} {% endblock %} {% block content %}
Diplomatic Tension Index
{{ "%.1f"|format(latest.dti_score|default(0)) }}
/ 100
{% if (latest.dti_score|default(0)) >= 75 %}CRITICAL {% elif (latest.dti_score|default(0)) >= 50 %}HIGH {% elif (latest.dti_score|default(0)) >= 25 %}ELEVATED {% else %}ROUTINE{% endif %}
{% if latest.computed_at %}
{{ latest.computed_at[:16] }} UTC
{% endif %}
Cable Traffic (40%)
{{ "%.1f"|format(latest.cable_score|default(0)) }}
{{ latest.cable_count|default(0) }} cables (30d)
UNSC Activity (30%)
{{ "%.1f"|format(latest.unsc_score|default(0)) }}
{{ latest.unsc_count|default(0) }} events (30d)
Back-Channel (30%)
{{ "%.1f"|format(latest.backchannel_score|default(0)) }}
{{ latest.backchannel_count|default(0) }} observations (30d)
DTI Trend (last 48 snapshots · 6h cadence)
State Dept Cable Traffic
{% if cables %}
{% for c in cables %} {% endfor %}
Ref Origin Level Received
{{ c.cable_ref or '—' }} {{ c.origin or '—' }} {{ c.tension_level }} {{ (c.received_at or '')[:10] }}
{% else %}
No cable records. Use the + Ingest button to add data.
{% endif %}
UNSC Meeting Schedule
{% if unsc_events %}
{% for e in unsc_events %} {% endfor %}
Topic Emrg Veto Date
{{ (e.topic or e.event_type or '—')[:30] }} {% if e.emergency %}{% else %}{% endif %} {% if e.veto_cast %}V{% else %}{% endif %} {{ (e.scheduled_at or '')[:10] }}
{% else %}
No UNSC events. Use the + Ingest button to add data.
{% endif %}
Back-Channel Metadata
{% if backchannels %}
{% for b in backchannels %} {% endfor %}
Type Parties Escl Observed
{{ b.channel_type or '—' }} {% if b.parties %}{{ b.parties[:2]|join(', ') }}{% if b.parties|length > 2 %} +{{ b.parties|length - 2 }}{% endif %}{% else %}—{% endif %} {% if b.escalation_flag %} {% elif b.communication_breakdown %} {% else %}{% endif %} {{ (b.observed_at or '')[:10] }}
{% else %}
No back-channel records. Use the + Ingest button to add data.
{% endif %}
{% endblock %}