98 lines
2.3 KiB
HTML
98 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Conference archive{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<h1>Conference archive</h1>
|
|
<p><a href="{{ url_for("index") }}">home</a></p>
|
|
|
|
<form action="{{ url_for("search_everything") }}">
|
|
<div class="mb-3">
|
|
<input type="text" class="form-control" name="q" id="q" value="{{ search_for }}">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
</form>
|
|
|
|
{% if search_for %}
|
|
|
|
<h3>Talks</h3>
|
|
|
|
<p>Found {{ events.count() }} events matching '{{ search_for }}'</p>
|
|
|
|
{% for event in events %}
|
|
<div>
|
|
<p>
|
|
🎤
|
|
<a href="{{ url_for("event_page", event_id=event.id) }}">{{ event.title }}</a><br>
|
|
Speakers:
|
|
{% for p in event.people %}
|
|
👤
|
|
<a href="{{ url_for("person", person_id=p.id) }}">{{ p.name }}</a>
|
|
{% endfor %}<br>
|
|
|
|
👥 <a href="{{ url_for("conference_page", short_name=event.conference.short_name) }}">{{ event.conference.title }}</a><br>
|
|
|
|
{% if event.event_date %}
|
|
📅 {{ event.event_date.strftime("%a, %d %b %Y at %H:%M") }}
|
|
{% else %}
|
|
event date missing
|
|
{% endif %}
|
|
</p>
|
|
|
|
{% if event.abstract %}
|
|
<p class="card-text">
|
|
{% if "<" in event.abstract %}
|
|
{{ event.abstract | safe }}
|
|
{% else %}
|
|
{% for line in event.abstract.splitlines() %}
|
|
{{ line }}<br>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if event.description and event.description != event.abstract %}
|
|
<p class="card-text">
|
|
{% if "<" in event.description %}
|
|
{{ event.description | safe }}
|
|
{% else %}
|
|
{% for line in event.description.splitlines() %}
|
|
{{ line }}<br>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
<h3>People</h3>
|
|
<p>
|
|
Found {{ people.count() }} people matching '{{ search_for }}'
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
{% for item in people %}
|
|
<li>
|
|
<a href="{{ url_for("person", person_id=item.id) }}">{{ item.name }}</a>
|
|
{% if item.wikidata_qid %}
|
|
—
|
|
<a href="https://www.wikidata.org/wiki/{{ item.wikidata_qid }}">{{ item.wikidata_qid }} on Wikidata</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|