Move days column to middle of gaps table

This commit is contained in:
Edward Betts 2024-01-01 09:45:11 +00:00
parent 29edc20ca4
commit bfc368387b

View file

@ -21,8 +21,8 @@
<tr> <tr>
<th>before</th> <th>before</th>
<th class="text-end">start</th> <th class="text-end">start</th>
<th class="text-end">end</th>
<th class="text-end">days</th> <th class="text-end">days</th>
<th class="text-end">end</th>
<th>after</th> <th>after</th>
</tr> </tr>
</thead> </thead>
@ -31,8 +31,8 @@
<tr> <tr>
<td>{% for event in gap.before %}{% if not loop.first %}<br/>{% endif %}<span class="text-nowrap">{{ event.title or event.name }}</span>{% endfor %}</td> <td>{% for event in gap.before %}{% if not loop.first %}<br/>{% endif %}<span class="text-nowrap">{{ event.title or event.name }}</span>{% endfor %}</td>
<td class="text-end text-nowrap">{{ gap.start.strftime("%A, %-d %b %Y") }}</td> <td class="text-end text-nowrap">{{ gap.start.strftime("%A, %-d %b %Y") }}</td>
<td class="text-end text-nowrap">{{ gap.end.strftime("%A, %-d %b %Y") }}</td>
<td class="text-end text-nowrap">{{ (gap.end - gap.start).days }} days</td> <td class="text-end text-nowrap">{{ (gap.end - gap.start).days }} days</td>
<td class="text-end text-nowrap">{{ gap.end.strftime("%A, %-d %b %Y") }}</td>
<td>{% for event in gap.after %}{% if not loop.first %}<br/>{% endif %}<span class="text-nowrap">{{ event.title or event.name }}</span>{% endfor %}</td> <td>{% for event in gap.after %}{% if not loop.first %}<br/>{% endif %}<span class="text-nowrap">{{ event.title or event.name }}</span>{% endfor %}</td>
</tr> </tr>
{% endfor %} {% endfor %}