6c950e768f
Signed-off-by: Markus Birth <markus@birth-online.de>
36 lines
910 B
HTML
36 lines
910 B
HTML
{% args c %}
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="refresh" content="30" />
|
|
<style type="text/css">
|
|
.towards {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.message {
|
|
border: 1px solid #cc0;
|
|
background-color: #ff0;
|
|
color: black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Last update: {{c["ura"]["gmtime"]}} GMT</p>
|
|
{% for stop_id in c["stops"] %}
|
|
{% set s = c["stops"][stop_id] %}
|
|
<h1>{{s["name"]}} (Stop: {{s["stop"]}})</h1>
|
|
<div class="towards">(Towards: <b>{{s["towards"]}}</b>)</div>
|
|
{% for m in s["messages"] %}
|
|
<p class="message">{{m}}</p>
|
|
{% endfor %}
|
|
{% for line_name in s["lines"] %}
|
|
<h3>{{line_name}}</h3>
|
|
<ol>
|
|
{% for pred in s["lines"][line_name] %}
|
|
<li>{{pred["est_due"]}} ➡ {{pred["destination"]}}
|
|
{% endfor %}
|
|
</ol>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</body>
|
|
</html> |