{% extends "base.html" %} {% set active = "explore" %} {% block title %}Cortex — Explore{% endblock %} {% block content %}

Explore

{% if topic and dossier %} {# ── Dossier Summary ─────────────────────────────── #}
{{ dossier.topic }} {% if dossier.entity %} {{ dossier.entity.type }} {% endif %}
{{ dossier.object_count }} related objects
{% if connections %}
{{ connections|length }} connections
{% endif %}
{# ── Connections ──────────────────────────────────── #} {% if connections %}
Connections
{% for conn in connections %}
{{ '→' if conn.direction == 'outgoing' else '←' }} {{ conn.rel_type }} {{ conn.other_type }} {{ conn.other_title }}
{% endfor %}
{% endif %} {# ── Related Objects ──────────────────────────────── #} {% if dossier.objects %}
Related Objects
{% for obj in dossier.objects %} {% endfor %}
TypeTitleSummary
{{ obj.type }} {{ obj.title }} {{ obj.summary[:120] }}{{ '...' if obj.summary|length > 120 else '' }}
{% endif %} {% elif topic and not dossier %}

No results found for "{{ topic }}". Try a different topic or browse entities below.

{% endif %} {# ── Entity Browser ───────────────────────────────── #}
Entities
{% if topic %} {% endif %}
{% if entities %}
{% for e in entities %} {{ e.type }} {{ e.name }} {% if e.connection_count %}{{ e.connection_count }}{% endif %} {% endfor %}
{% else %}

No entities found{{ ' for type "' + entity_type + '"' if entity_type else '' }}.

{% endif %}
{% endblock %}