2023-11-21 19:47:37 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block style %}
|
|
|
|
<style>
|
|
|
|
.grid-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(6, auto); /* 7 columns for each piece of information */
|
|
|
|
gap: 10px;
|
|
|
|
justify-content: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item {
|
|
|
|
/* Additional styling for grid items can go here */
|
|
|
|
}
|
2023-12-04 23:01:14 +00:00
|
|
|
|
|
|
|
.heading {
|
|
|
|
grid-column: 1 / 7; /* Spans from the 1st line to the 7th line */
|
|
|
|
}
|
2023-11-21 19:47:37 +00:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-12-29 19:02:05 +00:00
|
|
|
{% macro row(item, badge) %}
|
2023-12-04 23:01:14 +00:00
|
|
|
<div class="grid-item text-end">{{ item.start.strftime("%a, %d %b %Y") }}</div>
|
|
|
|
<div class="grid-item text-end">{{ item.end.strftime("%a, %d %b") }}</div>
|
2023-12-29 19:02:05 +00:00
|
|
|
<div class="grid-item">{{ item.name }}
|
2023-12-29 22:05:06 +00:00
|
|
|
{% if item.going and not (item.accommodation_booked or item.travel_booked) %}
|
|
|
|
<span class="badge text-bg-primary">
|
|
|
|
{{ badge }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if item.accommodation_booked %}
|
|
|
|
<span class="badge text-bg-success">accommodation</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if item.transport_booked %}
|
|
|
|
<span class="badge text-bg-success">transport</span>
|
2023-12-29 19:02:05 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-12-04 23:01:14 +00:00
|
|
|
<div class="grid-item">{{ item.topic }}</div>
|
|
|
|
<div class="grid-item">{{ item.location }}</div>
|
|
|
|
<div class="grid-item"><a href="{{ item.url }}">{{ item.url }}</a></div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2023-12-29 19:02:05 +00:00
|
|
|
{% macro section(heading, item_list, badge) %}
|
2023-12-04 23:01:14 +00:00
|
|
|
{% if item_list %}
|
|
|
|
<div class="heading"><h2>{{heading}}</h2></div>
|
2023-12-29 19:02:05 +00:00
|
|
|
{% for item in item_list %}{{ row(item, badge) }}{% endfor %}
|
2023-12-04 23:01:14 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
2023-11-21 19:47:37 +00:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="container-fluid mt-2">
|
|
|
|
|
|
|
|
<h1>Conferences</h1>
|
|
|
|
|
2023-11-27 10:00:14 +00:00
|
|
|
<p>
|
|
|
|
<a href="{{ url_for("index") }}">← back to agenda</a>
|
|
|
|
|
|
|
|
|
<a href="{{ url_for("travel_list") }}">travel</a>
|
|
|
|
|
|
|
|
|
<strong>conference</strong>
|
2023-12-28 20:10:05 +00:00
|
|
|
|
|
2023-12-28 20:12:21 +00:00
|
|
|
<a href="{{ url_for("gaps_page") }}">gaps</a>
|
2023-11-27 10:00:14 +00:00
|
|
|
</p>
|
2023-11-21 19:47:37 +00:00
|
|
|
|
|
|
|
<div class="grid-container">
|
2023-12-29 19:02:05 +00:00
|
|
|
{{ section("Current", current, "attending") }}
|
|
|
|
{{ section("Future", future, "going") }}
|
|
|
|
{{ section("Past", past|reverse, "went") }}
|
2023-11-21 19:47:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|