221 </script> |
228 </script> |
222 </head> |
229 </head> |
223 <body onload='cycle_leaves()'> |
230 <body onload='cycle_leaves()'> |
224 <h1><img src="../static/pysäkki.png" height="128" /><span id='stop-name'>{{ref}} {{name}}</span></h1> |
231 <h1><img src="../static/pysäkki.png" height="128" /><span id='stop-name'>{{ref}} {{name}}</span></h1> |
225 <div class='next-leave'> |
232 <div class='next-leave'> |
226 <ul class='next-leave-list'> |
|
227 {% for schedule_entry in schedule[:num_imminent_leaves] %} |
233 {% for schedule_entry in schedule[:num_imminent_leaves] %} |
228 <li id="leave-{{schedule_entry['index']}}"> |
|
229 |
|
230 <table> |
234 <table> |
231 <tr> |
235 <tr> |
232 <td class='next-leave-time'> |
236 <td class='next-leave-time'> |
233 {% if schedule_entry['imminent'] %} |
237 {% if schedule_entry['imminent'] %} |
234 <span class='imminent-leave'>{{schedule_entry['time']}}</span>​ |
238 <span class='imminent-leave'>{{schedule_entry['time']}}</span>​ |
235 {% else %} |
239 {% else %} |
236 {{schedule_entry['time']}}​ |
240 {{schedule_entry['time']}}​ |
237 {% endif %} |
241 {% endif %} |
238 </td> |
242 </td> |
239 <td rowspan="2"> |
243 <td class='next-leave-route'> |
|
244 <span class='route-symbol'>{{schedule_entry['route']}}</span> |
|
245 </td> |
|
246 </tr> |
|
247 |
|
248 <tr> |
|
249 <td colspan="2" class='next-leave-destination'>{{schedule_entry['sign']['destination']}}</td> |
|
250 </tr> |
|
251 |
|
252 <tr> |
|
253 <td> |
240 <ul class="next-leave-places"> |
254 <ul class="next-leave-places"> |
241 <li class='next-leave-destination'> |
255 {% for entry in schedule_entry['sign']['via'] %} |
242 {{schedule_entry['sign']['destination']}}</li> |
256 <li>{{entry}}</li> |
243 {% for entry in schedule_entry['sign']['via'] %} |
257 {% endfor %} |
244 <li>{{entry}}</li> |
|
245 {% endfor %} |
|
246 </ul> |
258 </ul> |
247 </td> |
259 </td> |
248 </tr> |
260 </tr> |
249 <tr> |
|
250 <td><span class='next-leave-route'>{{schedule_entry['route']}}</span></td> |
|
251 </tr> |
|
252 </table> |
261 </table> |
253 |
|
254 </li> |
|
255 {% endfor %} |
262 {% endfor %} |
256 </ul> |
|
257 </div> |
263 </div> |
258 {% if schedule[num_imminent_leaves] %} |
264 {% if schedule[num_imminent_leaves] %} |
259 <div id='other-leaves'> |
265 <div id='other-leaves'> |
260 <table cellspacing="0"> |
266 <table cellspacing="0"> |
261 {% for halt in schedule[num_imminent_leaves:num_imminent_leaves + 2] %} |
267 {% for halt in schedule[num_imminent_leaves:num_imminent_leaves + 2] %} |