Improvements

This commit is contained in:
Edward Betts 2023-09-21 04:59:17 +01:00
parent 77f2baea38
commit 9f3a7995a1
9 changed files with 532 additions and 110 deletions

View file

@ -3,8 +3,6 @@
{% block title %}Conference archive{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<h1>Conference archive</h1>
<form action="{{ url_for("search_people") }}">
@ -15,23 +13,31 @@
<button type="submit" class="btn btn-primary">Search</button>
</form>
<h3>Speaker/conference frequency distribution</h3>
<p>Distribution of speakers by conference count.</p>
{% for conf_count, speaker_count in speaker_counts %}
<div>
{{ plural(conf_count, "conference") }}:
{{ plural(speaker_count, "speaker") }}
</div>
{% endfor %}
<h3>Top speakers</h3>
<ul>
{% for person, count in top_speakers %}
<li>
<div>
👤
<a href="{{ url_for("person", person_id=person.id) }}">{{ person.name }}</a>
({{ count }})
({{ count }} conferences, {{ person.event_count }} talks)
{% if person.wikidata_photo %}📷{% endif %}
{% if person.wikidata_qid %}
&mdash;
<a href="https://www.wikidata.org/wiki/{{ person.wikidata_qid }}">{{ person.wikidata_qid }} on Wikidata</a>
<a href="https://www.wikidata.org/wiki/{{ person.wikidata_qid }}">Wikidata</a>
{% endif %}
</li>
</div>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}