Add gaps page to navigation

This commit is contained in:
Edward Betts 2023-12-28 20:10:05 +00:00
parent e95f2381f1
commit c3a9d8cbfa
4 changed files with 28 additions and 10 deletions

View file

@ -47,6 +47,8 @@
<a href="{{ url_for("travel_list") }}">travel</a>
|
<strong>conference</strong>
|
<a href="{{ url_for("gaps") }}">gaps</a>
</p>
<div class="grid-container">

View file

@ -3,16 +3,28 @@
{% block content %}
<div class="p-2">
<h1>Gaps</h1>
<table class="table table-hover w-auto">
{% for start, end in gaps %}
<tr>
<td class="text-end">{{ start.strftime("%A, %-d %b %Y") }}</td>
<td class="text-end">{{ end.strftime("%A, %-d %b %Y") }}</td>
<td>{{ (end - start).days }} days</td>
</tr>
{% endfor %}
</table>
<h1>Gaps</h1>
<p>
<a href="{{ url_for("index") }}">&larr; back to agenda</a>
|
<a href="{{ url_for("travel_list") }}">travel</a>
|
<a href="{{ url_for("conference_list") }}">conference</a>
|
<strong>gaps</strong>
</p>
<table class="table table-hover w-auto">
{% for start, end in gaps %}
<tr>
<td class="text-end">{{ start.strftime("%A, %-d %b %Y") }}</td>
<td class="text-end">{{ end.strftime("%A, %-d %b %Y") }}</td>
<td>{{ (end - start).days }} days</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}

View file

@ -113,6 +113,8 @@
<a href="{{ url_for("travel_list") }}">travel</a>
|
<a href="{{ url_for("conference_list") }}">conference</a>
|
<a href="{{ url_for("gaps") }}">gaps</a>
</p>
<ul>

View file

@ -42,6 +42,8 @@
<strong>travel</strong>
|
<a href="{{ url_for("conference_list") }}">conference</a>
|
<a href="{{ url_for("gaps") }}">gaps</a>
</p>
<h3>flights</h3>