Add map fixture.
This commit is contained in:
parent
178c669b01
commit
6d899113ce
2 changed files with 62 additions and 0 deletions
16
web_view.py
16
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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue