Wed, 28 Jun 2017 17:52:42 +0300
Ääh
buses.py | file | annotate | diff | comparison | revisions | |
templates/stop.html | file | annotate | diff | comparison | revisions |
--- a/buses.py Wed Jun 28 17:51:40 2017 +0300 +++ b/buses.py Wed Jun 28 17:52:42 2017 +0300 @@ -308,6 +308,7 @@ bus_stops_by_name = dict(bus_stops_by_name) # ryhmittele bus_stops nimen mukaan + global all_clusters all_clusters = [] def cluster_bus_stops(): sorted_bus_stops = sorted(bus_stops.values(), key = lambda bus_stop: bus_stop.name)
--- a/templates/stop.html Wed Jun 28 17:51:40 2017 +0300 +++ b/templates/stop.html Wed Jun 28 17:52:42 2017 +0300 @@ -41,10 +41,11 @@ </tr> {% for halt in schedule %} <tr class="{% if halt['night'] %} yö {% endif %}"> - {% if halt['imminent'] %} - <span class='imminent-leave'>●</span> - {% endif %} - <td class='sarake-aika'>{{halt['time']}}</td> + <td class='sarake-aika'> + {% if halt['imminent'] %} + <span class='imminent-leave'>●</span> + {% endif %} + {{halt['time']}}</td> <td class='sarake-linja linja'> <a href="../ajovuoro/{{halt['trip']}}">{{halt['route']}}</a> </td>