conference-archive/templates/index.html

60 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 %}
2023-09-24 09:23:27 +01:00
{% block content %}
<div>
<h1>Conference archive</h1>
<div style="margin-bottom:1rem">
👥
{{ "{:,d}".format(count.conference) }} conferences<br/>
🌍
{{ "{:,d}".format(count.country) }} countries<br/>
📍
{{ "{:,d}".format(count.venue) }} venues<br/>
🎤
{{ "{:,d}".format(count.event) }} talks<br/>
👤
{{ "{:,d}".format(count.person) }} speakers
<a href="{{ url_for("top_speakers_page") }}">top speakers</a><br/>
</div>
2023-09-15 19:04:41 +01:00
2023-09-24 09:23:27 +01:00
<h2>Conferences</h2>
2023-09-24 09:23:27 +01:00
{% for item in items %}
{% if loop.first or item.start.year != loop.previtem.start.year %}
<h3>{{ item.start.year }}</h3>
{% endif %}
2023-09-21 04:59:17 +01:00
2023-09-24 09:23:27 +01:00
<div style="margin-bottom:1.5rem">
👥
<a href="{{ url_for("conference_page", short_name=item.short_name) }}">{{ item.title }}</a>
📅
{{ item.start.strftime("%d %b %Y") }}
<br/>
{% if item.venue %}
📍
{{ item.venue.name }}
&ndash;
{{ item.venue.city.name }},
{{ item.venue.city.country.name }}
{{ item.venue.city.country.flag }}
<br/>
2023-09-21 04:59:17 +01:00
{% endif %}
2023-09-24 09:23:27 +01:00
{#
{% if item.series %}
📃 Series: {{ item.series.name }}
<br/>
{% endif %}
#}
2023-09-21 04:59:17 +01:00
2023-09-24 09:23:27 +01:00
{{ (item.end - item.start).days + 1 }} days,
{{ item.events.count() }} talks,
{{ item.people_detail.count() }} speakers<br/>
2023-09-15 19:04:41 +01:00
</div>
2023-09-24 09:23:27 +01:00
{% endfor %}
2023-09-15 19:04:41 +01:00
2023-09-24 09:23:27 +01:00
</div>
{% endblock %}