conference-archive/templates/index.html

51 lines
1.4 KiB
HTML
Raw Normal View History

2023-09-15 19:04:41 +01:00
{% extends "base.html" %}
{% block title %}Conference archive{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<h1>Conference archive</h1>
<form action="{{ url_for("search_people") }}">
<div class="mb-3">
<label for="q" class="form-label">speaker name</label>
<input type="text" class="form-control" name="q" id="q">
</div>
<button type="submit" class="btn btn-primary">Search</button>
</form>
<ul>
<li>{{ "{:,d}".format(count.conference) }} conferences</li>
<li>{{ "{:,d}".format(count.event) }} talks -
<a href="{{ url_for("events_page") }}">most common titles</a>
</li>
<li>
{{ "{:,d}".format(count.person) }} speakers
<a href="{{ url_for("top_speakers_page") }}">top speakers</a>
</li>
</ul>
<table class="table w-auto">
<tbody>
{% for item in items %}
<tr>
<td>
<a href="{{ url_for("conference_page", short_name=item.short_name) }}">{{ item.title }}</a>
</td>
<td class="text-end">{{ item.start.strftime("%d %b %Y") }}</td>
<td class="text-end">{{ (item.end - item.start).days + 1 }} days</td>
<td class="text-end">{{ item.events.count() }} talks</td>
<td class="text-end">{{ item.people_detail.count() }} speakers</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}