{% extends 'schedule_base.html' %}

{% block schedule_content %}
<p class="lead">
  An alphabetical list of all talks, workshops, keynotes and other events
  at {{ camp.title }}.
</p>

<div class="list-group">
  {% for event in event_list %}
  {% if event.event_type.name != "Facilities" %}
  <a href="{% url 'event_detail' camp_slug=camp.slug slug=event.slug %}" class="list-group-item">
    <small style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %}; display: inline-block; padding: 5px;">
      {{ event.event_type.name }}
    </small>
    {{ event.title }}
    {% if event.speakers.exists %}
      by {{ event.speakers.all|join:", " }}
    {% endif %}
  </a>
  {% endif %}
  {% endfor %}
</div>
{% endblock schedule_content %}