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>
|
||||
|
|
||||
<strong>conference</strong>
|
||||
|
|
||||
<a href="{{ url_for("gaps") }}">gaps</a>
|
||||
</p>
|
||||
|
||||
<div class="grid-container">
|
||||
|
|
|
@ -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") }}">← 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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue