templates/cluster.html

changeset 35
8ed8f8be7a07
parent 34
d1b88561afdf
child 38
d0ae1996abdd
equal deleted inserted replaced
34:d1b88561afdf 35:8ed8f8be7a07
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="icon" type="image/png" href="static/favicon.png" /> 3 <link rel="icon" type="image/png" href="../static/favicon.png" />
4 <link rel="stylesheet" type="text/css" href="static/style.css" /> 4 <link rel="stylesheet" type="text/css" href="../static/style.css" />
5 <meta charset='UTF-8' /> 5 <meta charset='UTF-8' />
6 <meta http-equiv='refresh' content='60'> 6 <meta http-equiv='refresh' content='60'>
7 <title>{{name}}</title> 7 <title>{{name}}</title>
8 {% if amount_of_stops_in_cluster >= 5 %} 8 {% if amount_of_stops_in_cluster >= 5 %}
9 <style> 9 <style>
34 background-size: cover; 34 background-size: cover;
35 }*/ 35 }*/
36 </style> 36 </style>
37 </head> 37 </head>
38 <body> 38 <body>
39 <h1><img src="static/pysäkki.png" height="96" /> <span>{{name}}</span></h1> 39 <h1><img src="../static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
40 <p id="pysäkki-info"> 40 <p id="pysäkki-info">
41 <a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a> 41 <a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a>
42 </p> 42 </p>
43 <div class="stops-in-cluster"> 43 <div class="stops-in-cluster">
44 <ul> 44 <ul>
45 {% for stop in stops_in_cluster %} 45 {% for stop in stops_in_cluster %}
46 <li><a href="pysäkki/{{stop['id']}}"><img src="static/pysäkki.png" height="24" /> {{stop['code']}} {{stop['name']}}</a></li> 46 <li><a href="../pysäkki/{{stop['id']}}"><img src="../static/pysäkki.png" height="24" /> {{stop['code']}} {{stop['name']}}</a></li>
47 {% endfor %} 47 {% endfor %}
48 </ul> 48 </ul>
49 </div> 49 </div>
50 <table class='aikataulu' cellspacing="0"> 50 <table class='aikataulu' cellspacing="0">
51 <tr> 51 <tr>
56 </tr> 56 </tr>
57 {% for halt in schedule %} 57 {% for halt in schedule %}
58 <tr class="{% if halt['night'] %} yö {% endif %}"> 58 <tr class="{% if halt['night'] %} yö {% endif %}">
59 <td class='sarake-aika'>{{halt['time']}}</td> 59 <td class='sarake-aika'>{{halt['time']}}</td>
60 <td class='sarake-linja linja'> 60 <td class='sarake-linja linja'>
61 <a href="ajovuoro/{{halt['trip']}}">{{halt['route']}}</a> 61 <a href="../ajovuoro/{{halt['trip']}}">{{halt['route']}}</a>
62 </td> 62 </td>
63 <td class='sarake-määränpää'> 63 <td class='sarake-määränpää'>
64 <a href="ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a> 64 <a href="../ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
65 </td> 65 </td>
66 <td class='sarake-pysäkki'> 66 <td class='sarake-pysäkki'>
67 <a href="pysäkki/{{halt['stop_id']}}"><img src="static/pysäkki.png" height="24" /> {{halt['stop_code']}}</a> 67 <a href="../pysäkki/{{halt['stop_id']}}"><img src="../static/pysäkki.png" height="24" /> {{halt['stop_code']}}</a>
68 </td> 68 </td>
69 </tr> 69 </tr>
70 {% endfor %} 70 {% endfor %}
71 </table> 71 </table>
72 </body> 72 </body>

mercurial