{# Talk table row component with speakers and edit/delete actions
Requires: talk (Talk object with event relationship) #}
{% include 'components/talk_link.html' %}
{% if talk.event %}
{% set event = talk.event %}
{% include 'components/event_link.html' %}
{% else %}
-
{% endif %}
{# Display all speakers from many-to-many relationship, or fallback to primary speaker #}
{% if talk.speakers %}
{% for speaker in talk.speakers %}
{% include 'components/speaker_link.html' %}{% if not loop.last %}, {% endif %}
{% endfor %}
{% elif talk.speaker %}
{% set speaker = talk.speaker %}
{% include 'components/speaker_link.html' %}
{% else %}
-
{% endif %}
{{ talk.duration_minutes or '' }}
{% if current_user and current_user.is_authenticated and '/nook-feedback' in current_user.groups %}
Edit
{% else %}
{% endif %}