templates/macros.html

Fri, 04 May 2018 21:43:46 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 04 May 2018 21:43:46 +0300
changeset 99
0726eb9bc9d1
parent 98
c07a77c8a070
permissions
-rw-r--r--

night routes can be rarer

{% macro route_rep(route_splice) %}
{{route_splice[0]}}{{route_splice[1]}}<span class='route-suffix'>{{route_splice[2]}}</span>
{% endmacro %}

{% macro bus_stop_rep(bus_stop) %}
<a href="./stop/{{bus_stop.code}}"><img src="./static/{{bus_stop.typename}}.png" height="24" /> <span class='stop-code'>{{bus_stop.code}} </span><br /><span class='stop-name'>{{bus_stop.name}}</span></a>
{% endmacro %}

mercurial