templates/macros.html

changeset 98
c07a77c8a070
parent 78
ead971f9569c
--- a/templates/macros.html	Tue May 01 13:24:33 2018 +0300
+++ b/templates/macros.html	Fri May 04 21:32:16 2018 +0300
@@ -1,3 +1,7 @@
 {% 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