diff --git a/templates/fixture/map.html b/templates/fixture/map.html new file mode 100644 index 0000000..9ae6da7 --- /dev/null +++ b/templates/fixture/map.html @@ -0,0 +1,46 @@ + + + + + + +Map fixture + + + + + + + + + + + + +
+ + + + + + + + + + + diff --git a/web_view.py b/web_view.py index 8e41aef..5fea6b9 100755 --- a/web_view.py +++ b/web_view.py @@ -477,6 +477,22 @@ def trip_past_list() -> str: ) +@app.route("/fixture/map") +def fixture_trip_map() -> str: + """Map of trips.""" + trips = get_trip_list() + coordinates, routes = agenda.trip.get_coordinates_and_routes(trips) + + return flask.render_template( + "fixture/map.html", + heading="Trip map", + trips=trips, + coordinates=coordinates, + routes=routes, + get_country=agenda.get_country, + ) + + @app.route("/trip/future") def trip_future_list() -> str: """Page showing a list of future trips."""