2023-12-27 08:23:34 +00:00
|
|
|
{% extends "base.html" %}
|
2024-04-16 22:01:16 +01:00
|
|
|
{% block title %}Gaps - Edward Betts{% endblock %}
|
2023-12-27 08:23:34 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="p-2">
|
|
|
|
|
2023-12-28 20:10:05 +00:00
|
|
|
<h1>Gaps</h1>
|
|
|
|
<table class="table table-hover w-auto">
|
2023-12-28 20:32:55 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>before</th>
|
|
|
|
<th class="text-end">start</th>
|
|
|
|
<th class="text-end">days</th>
|
2024-01-01 09:45:11 +00:00
|
|
|
<th class="text-end">end</th>
|
2023-12-28 20:32:55 +00:00
|
|
|
<th>after</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for gap in gaps %}
|
|
|
|
<tr>
|
2024-01-23 15:58:01 +00:00
|
|
|
<td class="text-start">
|
|
|
|
{% for event in gap.before %}
|
|
|
|
<div class="text-nowrap">
|
|
|
|
{% if event.url %}
|
|
|
|
<a href="{{event.url}}">{{ event.title_with_emoji }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ event.title_with_emoji }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2023-12-31 20:57:13 +00:00
|
|
|
<td class="text-end text-nowrap">{{ gap.start.strftime("%A, %-d %b %Y") }}</td>
|
|
|
|
<td class="text-end text-nowrap">{{ (gap.end - gap.start).days }} days</td>
|
2024-01-01 09:45:11 +00:00
|
|
|
<td class="text-end text-nowrap">{{ gap.end.strftime("%A, %-d %b %Y") }}</td>
|
2024-01-23 15:58:01 +00:00
|
|
|
<td class="text-start">
|
|
|
|
{% for event in gap.after %}
|
|
|
|
<div class="text-nowrap">
|
|
|
|
{% if event.url %}
|
|
|
|
<a href="{{event.url}}">{{ event.title_with_emoji }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ event.title_with_emoji }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2023-12-28 20:32:55 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2023-12-28 20:10:05 +00:00
|
|
|
</table>
|
2023-12-27 08:23:34 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|