eurotunnel-scrape/templates/index.html
2023-08-08 16:17:50 +01:00

62 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
{% macro time(t) %}{{ t[:2] + ":" + t[2:] }}{% endmacro %}
<body>
<div class="container mt-3">
<p>All Flexi Long Stay tickets are £269</p>
<p>Pay an extra £40 to make a price return refundable.</p>
<div class="row">
<div class="col">
<p>Updated: {{ out_ts.strftime("%a, %-d %b %Y at %H:%M") }}</p>
<table class="table table-sm w-auto">
<tr>
<th>Depart</th>
<th>Arrive</th>
<th class="text-end">Price</th>
</tr>
{% for t in out %}
<tr>
<td class="text-end">{{ time(t.dep) }}</td>
<td class="text-end">{{ time(t.arr) }}</td>
<td class="text-end">£{{ t.price }}</td>
</tr>
{% endfor %}
</table>
</div>
<div class="col">
<p>Updated: {{ back_ts.strftime("%a, %-d %b %Y at %H:%M") }}</p>
<table class="table table-sm w-auto">
<tr>
<th>Depart</th>
<th>Arrive</th>
<th class="text-end">Price</th>
</tr>
{% for t in back %}
<tr>
<td class="text-end">{{ time(t.dep) }}</td>
<td class="text-end">{{ time(t.arr) }}</td>
<td class="text-end">£{{ t.price }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</body>
</html>