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> <a href="{{ url_for("travel_list") }}">travel</a>
| |
<strong>conference</strong> <strong>conference</strong>
|
<a href="{{ url_for("gaps") }}">gaps</a>
</p> </p>
<div class="grid-container"> <div class="grid-container">

View file

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

View file

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

View file

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