Update
This commit is contained in:
parent
cbc681ddbc
commit
ebe672b972
7 changed files with 286 additions and 117 deletions
|
|
@ -1,8 +1,10 @@
|
|||
{% macro headings() %}
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>day</th>
|
||||
<th>depart</th>
|
||||
<th>arrive</th>
|
||||
<th>duration</th>
|
||||
<th>ship</th>
|
||||
<th>economy</th>
|
||||
<th>standard</th>
|
||||
|
|
@ -17,10 +19,12 @@
|
|||
{{ headings() }}
|
||||
{% for day in days %}
|
||||
{% set date = parse_date(day.date) %}
|
||||
{% for crossing in day.prices %}
|
||||
{% for i in day.prices if i.crossingPrices.sailingId not in ("385413", "384486", "386181", "386191", "388752", "385445", "384550") %}
|
||||
{% set crossing = i.crossingPrices %}
|
||||
|
||||
{# <tr><td colspan="7">{{ crossing }}</td></tr> #}
|
||||
<tr>
|
||||
<td class="text-nowrap">{{ crossing.sailingId }}</td>
|
||||
<td class="text-nowrap text-end">{{ date.strftime("%a, %d %b") }}</td>
|
||||
<td class="text-nowrap">
|
||||
{{ crossing.departureDateTime.time }}
|
||||
|
|
@ -28,6 +32,9 @@
|
|||
<td class="text-nowrap">
|
||||
{{ crossing.arrivalDateTime.time }}
|
||||
</td>
|
||||
<td class="text-nowrap">
|
||||
{{ get_duration(crossing.departureDateTime.time, crossing.arrivalDateTime.time, time_delta) }}
|
||||
</td>
|
||||
<td class="text-nowrap">
|
||||
{{ crossing.shipName }}
|
||||
</td>
|
||||
|
|
@ -46,6 +53,9 @@
|
|||
£{{ crossing.flexiPrice.amount }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ format_pet_options(crossing.petAvailabilities) | join(", ") }}
|
||||
</td>
|
||||
<td class="text-nowrap">
|
||||
{% if crossing.full %}full |{% endif %}
|
||||
{% if crossing.isCabinSpaceFull %}no cabin space |{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue