Add conference series pages
This commit is contained in:
parent
098c7e4447
commit
57b2db205d
9 changed files with 367 additions and 3 deletions
85
templates/conference_series.html
Normal file
85
templates/conference_series.html
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ series.name }} - Edward Betts{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid mt-2">
|
||||
<h1>{{ series.name }}</h1>
|
||||
|
||||
<dl class="row">
|
||||
{% if series.topic %}
|
||||
<dt class="col-sm-2">Topic</dt>
|
||||
<dd class="col-sm-10">{{ series.topic }}</dd>
|
||||
{% endif %}
|
||||
{% if series.usual_location or series.country %}
|
||||
<dt class="col-sm-2">Usual location</dt>
|
||||
<dd class="col-sm-10">
|
||||
{% set country = get_country(series.country) if series.country else None %}
|
||||
{% if country %}{{ country.flag }} {% endif %}{{ series.usual_location or "" }}
|
||||
</dd>
|
||||
{% endif %}
|
||||
{% if series.cadence %}
|
||||
<dt class="col-sm-2">Cadence</dt>
|
||||
<dd class="col-sm-10">{{ series.cadence }}</dd>
|
||||
{% endif %}
|
||||
{% if series.url %}
|
||||
<dt class="col-sm-2">Website</dt>
|
||||
<dd class="col-sm-10"><a href="{{ series.url }}">{{ series.url }}</a></dd>
|
||||
{% endif %}
|
||||
{% if series.notes %}
|
||||
<dt class="col-sm-2">Notes</dt>
|
||||
<dd class="col-sm-10">{{ series.notes }}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
|
||||
<h2>Editions</h2>
|
||||
<table class="table table-sm table-hover align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Dates</th>
|
||||
<th>Conference</th>
|
||||
<th>Location</th>
|
||||
<th>Attendance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in conferences %}
|
||||
<tr>
|
||||
<td class="text-nowrap text-muted small">
|
||||
{{ item.display_date }}
|
||||
{% if item.date_status == "tentative" %}
|
||||
<span class="badge text-bg-warning ms-1">tentative</span>
|
||||
{% elif item.date_status == "approximate" %}
|
||||
<span class="badge text-bg-secondary ms-1">approximate</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if item.url %}<a href="{{ item.url }}">{{ item.name }}</a>
|
||||
{% else %}{{ item.name }}{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% set country = get_country(item.country) if item.country else None %}
|
||||
{% if country %}{{ country.flag }} {% endif %}{{ item.location }}
|
||||
</td>
|
||||
<td>
|
||||
{% if item.going %}
|
||||
<span class="badge text-bg-success">going</span>
|
||||
{% endif %}
|
||||
{% if item.registered %}
|
||||
<span class="badge text-bg-primary">registered</span>
|
||||
{% endif %}
|
||||
{% if item.linked_trip %}
|
||||
{% set trip = item.linked_trip %}
|
||||
<a href="{{ url_for('trip_page', start=trip.start.isoformat()) }}"
|
||||
class="ms-1"
|
||||
title="Trip: {{ trip.title }}">
|
||||
trip{% if trip.title != item.name %}: {{ trip.title }}{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue