Add gaps page to navigation
This commit is contained in:
parent
e95f2381f1
commit
c3a9d8cbfa
|
@ -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">
|
||||||
|
|
|
@ -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") }}">← 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 %}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue