templates/macros.html

changeset 98
c07a77c8a070
parent 78
ead971f9569c
equal deleted inserted replaced
97:6967657fced6 98:c07a77c8a070
1 {% macro route_rep(route_splice) %} 1 {% macro route_rep(route_splice) %}
2 {{route_splice[0]}}{{route_splice[1]}}<span class='route-suffix'>{{route_splice[2]}}</span> 2 {{route_splice[0]}}{{route_splice[1]}}<span class='route-suffix'>{{route_splice[2]}}</span>
3 {% endmacro %} 3 {% endmacro %}
4
5 {% macro bus_stop_rep(bus_stop) %}
6 <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>
7 {% endmacro %}

mercurial