2023-11-21 19:47:37 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2024-01-14 17:23:50 +00:00
|
|
|
{% from "macros.html" import trip_link, conference_row with context %}
|
2024-01-04 22:55:19 +00:00
|
|
|
|
2024-04-16 22:01:16 +01:00
|
|
|
{% block title %}Conferences - Edward Betts{% endblock %}
|
|
|
|
|
2023-11-21 19:47:37 +00:00
|
|
|
{% block style %}
|
2024-04-17 11:40:13 +01:00
|
|
|
{% set column_count = 9 %}
|
2023-11-21 19:47:37 +00:00
|
|
|
<style>
|
|
|
|
.grid-container {
|
|
|
|
display: grid;
|
2024-01-03 15:52:24 +00:00
|
|
|
grid-template-columns: repeat({{ column_count }}, auto); /* 7 columns for each piece of information */
|
2023-11-21 19:47:37 +00:00
|
|
|
gap: 10px;
|
|
|
|
justify-content: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item {
|
|
|
|
/* Additional styling for grid items can go here */
|
|
|
|
}
|
2023-12-04 23:01:14 +00:00
|
|
|
|
|
|
|
.heading {
|
2024-01-03 15:52:24 +00:00
|
|
|
grid-column: 1 / {{ column_count + 1 }}; /* Spans from the 1st line to the 7th line */
|
2023-12-04 23:01:14 +00:00
|
|
|
}
|
2023-11-21 19:47:37 +00:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-12-29 19:02:05 +00:00
|
|
|
{% macro section(heading, item_list, badge) %}
|
2024-01-04 22:55:19 +00:00
|
|
|
{% if item_list %}
|
|
|
|
<div class="heading"><h2>{{ heading }}</h2></div>
|
2024-01-14 17:23:50 +00:00
|
|
|
{% for item in item_list %}
|
|
|
|
{{ conference_row(item, badge) }}
|
2024-01-14 17:57:02 +00:00
|
|
|
<div class="grid-item">
|
|
|
|
{% if item.linked_trip %} trip: {{ trip_link(item.linked_trip) }} {% endif %}
|
|
|
|
</div>
|
2024-01-14 17:23:50 +00:00
|
|
|
{% endfor %}
|
2024-01-04 22:55:19 +00:00
|
|
|
{% endif %}
|
2023-12-04 23:01:14 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2023-11-21 19:47:37 +00:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="container-fluid mt-2">
|
|
|
|
<h1>Conferences</h1>
|
|
|
|
<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 %}
|