]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/templates/rodelbahn_view_wikitext.html
Further work on wikitext template for sledrun.
[philipp/winterrodeln/wradmin.git] / wradmin / templates / rodelbahn_view_wikitext.html
index 750ba62fca3d7069529f464794bf8cc6cdd2f2a6..a473aafbdb38cc1c75a44641154c4a9c807565e4 100644 (file)
 
 == Anreise mit öffentlichen Verkehrsmitteln ==
 {% if 'public_transport_description' in sledrun_json %}{{ sledrun_json['public_transport_description'] }}
-{% else %}''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
-{% endif %}
+{%- else %}''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''{% endif %}
 
+{% for pt_stop in sledrun_json.get('public_transport_stops', []) %}
+* {{ h.list_template('Haltestelle', [pt_stop.get('name', ''), '', h.json_pos_ele_position(pt_stop.get('position', '')), h.json_pos_ele_elevation(pt_stop.get('position', ''))]) }}
+{% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] %}
+{%- if template_name in pt_stop -%}
+** {{ h.json_template(pt_stop[template_name]) }}
+{% endif %}
+{%- endfor %}
+{%- endfor %}
 * {Haltestelle|Imst|Rastbühel/Hochbehälter|47.255415 N 10.738377 E|975}}
 ** {Fahrplan Abfahrtsmonitor VVT|Imst|Rastbühel/Hochbehälter|62295}}
 ** {Fahrplan Hinfahrt VVT|Imst|Rastbühel/Hochbehälter}}