Improve
This commit is contained in:
parent
f3f570063f
commit
c4eec7bb73
|
@ -2,75 +2,58 @@
|
|||
|
||||
{% block title %}Conference archive{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>Conference archive</h1>
|
||||
{% 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>
|
||||
|
||||
<h2>Conferences</h2>
|
||||
|
||||
{% for item in items %}
|
||||
{% if loop.first or item.start.year != loop.previtem.start.year %}
|
||||
<h3>{{ item.start.year }}</h3>
|
||||
{% endif %}
|
||||
|
||||
<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 }}
|
||||
–
|
||||
{{ item.venue.city.name }},
|
||||
{{ item.venue.city.country.name }}
|
||||
{{ item.venue.city.country.flag }}
|
||||
<br/>
|
||||
{% endif %}
|
||||
{#
|
||||
<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>
|
||||
{% if item.series %}
|
||||
📃 Series: {{ item.series.name }}
|
||||
<br/>
|
||||
{% endif %}
|
||||
#}
|
||||
|
||||
<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 {# -
|
||||
<a href="{{ url_for("events_page") }}">most common titles</a> #}
|
||||
<br/>
|
||||
👤
|
||||
{{ "{:,d}".format(count.person) }} speakers
|
||||
<a href="{{ url_for("top_speakers_page") }}">top speakers</a><br/>
|
||||
</div>
|
||||
|
||||
<h2>Conferences</h2>
|
||||
|
||||
{% for item in items %}
|
||||
{% if loop.first or item.start.year != loop.previtem.start.year %}
|
||||
<h3>{{ item.start.year }}</h3>
|
||||
{% endif %}
|
||||
|
||||
<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 }}
|
||||
–
|
||||
{{ item.venue.city.name }},
|
||||
{{ item.venue.city.country.name }}
|
||||
{{ item.venue.city.country.flag }}
|
||||
<br/>
|
||||
{% endif %}
|
||||
{#
|
||||
{% if item.series %}
|
||||
📃 Series: {{ item.series.name }}
|
||||
<br/>
|
||||
{% endif %}
|
||||
#}
|
||||
|
||||
{{ (item.end - item.start).days + 1 }} days,
|
||||
{{ item.events.count() }} talks,
|
||||
{{ item.people_detail.count() }} speakers<br/>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{{ (item.end - item.start).days + 1 }} days,
|
||||
{{ item.events.count() }} talks,
|
||||
{{ item.people_detail.count() }} speakers<br/>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue