{% comment %} One speaker's card. Rendered two ways: as an htmx fragment into the sliding panel on the list page, and inside speaker_detail.html as a standalone page when someone opens a shared link. Nothing here assumes which — `standalone` only controls the close button. {% endcomment %}
{% if speaker.thumbnail_url %} {% else %} {% endif %}

{{ speaker.display_name }}

{% if speaker.location %}
{{ speaker.location }}{% if distance %} · {{ distance }} miles away{% endif %}
{% endif %}
{% if not standalone %} {% endif %}
{% if speaker.topics.exists %}
{% for topic in speaker.topics.all %}{{ topic.name }} {% endfor %}
{% endif %} {% if speaker.bio %}
About

{{ speaker.bio }}

{% endif %} {% if speaker.programs %}
Talks

{{ speaker.programs }}

{% endif %} {% if speaker.email or speaker.phone or speaker.website or speaker.facebook_page %}
Contact
{% endif %}
{% include "auctions/partials/speaker_tags.html" %}
{% include "auctions/partials/speaker_comments.html" %}

{% comment %}No "NEC only" badge: everything imported carries the flag and the directory is NEC-only anyway, so it appeared on most cards and told the people who could see it nothing they didn't already know. The flag itself still scopes who the speaker is shown to.{% endcomment %} {{ speaker.attribution }}
{% if not standalone %} Open page {% endif %} {% if can_edit %} Edit {% endif %} {% if can_delete %}
{% csrf_token %}
{% endif %}