{# Expanded company view — jobs list, scan history, inline ATS edit, collapse button #} {# Replaces the inner content of #company-{id} via HTMX outerHTML swap #}
{{ company.name_raw }} {% if company.ats_probe_status == 'error' %} Error ({{ company.retry_count or 0 }}/3) {% elif company.ats_probe_status == 'miss' and company.miss_reason == 'unreachable' %} Unreachable {% elif company.ats_platform == 'lever' %} Lever {% elif company.ats_platform == 'greenhouse' %} Greenhouse {% elif company.ats_platform == 'ashby' %} Ashby {% elif ats_not_scannable %} {{ company.ats_platform|capitalize }} (no public API) {% else %} No ATS {% endif %} {% if company.homepage_url %} {{ company.homepage_url }} {% endif %}
{% if company.ats_probe_status == 'error' or (company.ats_probe_status == 'miss' and company.miss_reason == 'unreachable') %} {% endif %}

Recent Jobs ({{ jobs | length }})

{% if jobs %}
{% for job in jobs %}
{{ job.title }}
{% set eff_score = job.effective_score %} {% if eff_score %} {{ eff_score | int }} {% endif %} {{ job.pipeline_status }}
{% endfor %}
{% else %}

No jobs found from this company yet.

{% endif %}

Scan History

{% if scan_history %}
{% for log in scan_history %}
{{ log.scanned_at | relative_date }} {% if log.error %} Error {% elif log.jobs_matched is not none and log.jobs_matched != log.jobs_found %} {{ log.jobs_found }} new / {{ log.jobs_matched }} matched {% else %} {{ log.jobs_found }} jobs {% endif %}
{% endfor %}
{% else %}

No scans yet.

{% endif %} {% if ats_not_scannable %}

{{ company.ats_platform|capitalize }} has no public API — 0 is expected, not a failure.

{% endif %}

ATS Settings

{% if research and research.status in ('done', 'error') %}
{% include "companies/_research_section.html" %}
{% else %}
{% endif %}