-
Notifications
You must be signed in to change notification settings - Fork 0
/
station.html
66 lines (62 loc) · 2.15 KB
/
station.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>Railtim.es</title>
<!-- Bootstrap -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="http://tubetim.es/static/railtimes.css">
<link rel="stylesheet" type="text/css" href="http://tubetim.es/static/fonts/receipt/MyFontsWebfontsKit.css">
<!-- Random Icons -->
<link rel="shortcut icon" href="/static/favicon.ico">
<link rel="apple-touch-icon" href="/static/apple-touch-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/static/apple-touch-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/static/apple-touch-retina-iphone.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/static/apple-touch-retina-ipad.png" />
</head>
<body>
<div class="header">
<h1>
<img src="http://tubetim.es/static/train.png" style="vertical-align: 0 !important;"> railtimes
</h1>
<div class="nti">UK Train Times without all the nonsense</div>
</div>
<div class="container">
<h1 class="flipsign">
${station.stop_name}
</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Origin</th>
<th>Destination</th>
<th>Arrival</th>
<th>Departure</th>
<th>Platform</th>
<th></th>
</tr>
</thead>
<tbody>
% for train in trains:
<tr>
<td>${train.trip.route.route_long_name.split(' to ')[0]}</td>
<td>${train.trip.route.route_long_name.split(' to ')[1]}</td>
<td>${train.arrival_time}</td>
<td>${train.departure_time}</td>
<td>
% if str(train.platform) == '0':
-
% else:
${train.platform}
% endif
</td>
<td><a href="/train/${train.trip_id}/">View train</a></td>
</tr>
% endfor
</tbody>
</table>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</body>
</html>