Initial commit.
This commit is contained in:
commit
cd7c1f1e50
3 changed files with 294 additions and 0 deletions
61
templates/index.html
Normal file
61
templates/index.html
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<!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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue