-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.html
67 lines (64 loc) · 2.17 KB
/
train.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
67
<!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">Train Times without the nonsense</div>
</div>
<div class="container">
<h1 class="flipsign">
${train[0].departure_time.strftime('%H:%M')}
</h1>
<h1 class="flipsign">
${train[len(train) - 1].stop.stop_name}
</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Location</th>
<th>Arrival</th>
<th>Departure</th>
<th>Platform</th>
<th>Line</th>
<th></th>
</tr>
</thead>
<tbody>
% for point in train:
<tr>
<td>${point.stop.stop_name}</td>
<td>${str(point.arrival_time).replace('None', '-')}</td>
<td>${str(point.departure_time).replace('None', '-')}</td>
<td>
% if str(point.platform) == '0':
-
% else:
${point.platform}
% endif
</td>
<td>${str(point.line).replace('None', '-')}</td>
</tr>
% endfor
</tbody>
</table>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</body>
</html>