{% extends "base.html" %}

{% block title %}Conference archive{% endblock %}

  {% block content %}
  <h1>Conference archive</h1>

  <h2>Reports</h2>

  <div>Talks: {{ "{:,d}".format(event_count) }}</div>
  <div>Talks with no event date: {{ "{:,d}".format(missing_event_date_count) }}</div>
  <div>Speakers: {{ "{:,d}".format(speaker_count) }}</div>
  <div>Speakers with no bio: {{ "{:,d}".format(no_bio_count) }}</div>
  <div>Speakers with one bio: {{ "{:,d}".format(one_bio_count) }}</div>
  <div>Speakers with more than one bio: {{ "{:,d}".format(multiple_bio_count) }}</div>
  <div>Conferences without a venue: {{ "{:,d}".format(no_venue_count) }}</div>

  <h2>Talks with missing dates</h2>

  {% for event in missing_event_date %}
  <div>{{ event.title }}<br>
    &nbsp;{{ event.conference.title }}<br>
    &nbsp;GUID: {{ event.guid or "missing" }}
  </div>
  {% endfor %}

  <h2>Speakers with a shorter recent biography</h2>

  <p>{{ shorter_recent_bio | count }} found</p>

  {% for person, recent_bio_length, longest in shorter_recent_bio %}
  <div>
    <a href="{{ url_for("person", person_id=person.id) }}">{{ person.name }}</a>
    recent bio: {{ recent_bio_length }} vs {{ longest }}
  </div>
  {% endfor %}

{% endblock %}