Add days until column to birthdays table
This commit is contained in:
parent
d4b43d70ba
commit
623e20c273
|
|
@ -6,12 +6,22 @@
|
|||
<div class="container-fluid mt-2">
|
||||
<h1>Birthdays</h1>
|
||||
<table class="w-auto table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-end">Date</th>
|
||||
<th>Event</th>
|
||||
<th class="text-end">Days</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for event in items %}
|
||||
<tr>
|
||||
<td class="text-end">{{event.as_date.strftime("%a, %d, %b %Y")}}</td>
|
||||
<td>{{ event.title }}</td>
|
||||
<td class="text-end">{{ event.delta_days(today) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue