Commit graph

23 commits

Author SHA1 Message Date
574b4feb1f trip: redesign itinerary display and add trip list macro
- Add render_trip_element macro to macros.html; use it in trip_item for
  the trip list page, giving a consistent one-line-per-element format
  with emoji, route, times, duration, operator, distance, and CO₂
- Redesign trip_page.html itinerary: day headers use date-only (no year),
  condense check-out to a single accent line, show time-only on transport
  cards, humanise duration (Xh Ym), km-only distance, add CO₂ for all
  transport modes, fix seat display for integer seat values
- Fix UndefinedError on /trip/past caused by absent 'arrive' key (Jinja2
  Undefined is truthy) and date-only depart/arrive fields (no .date())
- Improve mobile map layout: text column before map in HTML order, reduce
  mobile map heights, hide toggle button on mobile
- Add trips.css with design system (Playfair Display / Source Sans 3 /
  JetBrains Mono, navy/gold/amber palette, card variants by type)
- Add tests/test_trip_list_render.py covering the rendering edge cases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 09:15:51 +00:00
c87320415f Show bus stops and coach stations on trip map.
Add case "bus" to get_locations() and bus route handling to
get_trip_routes() in trip.py. Coach stations now populate a dedicated
"coach_station" dict instead of the train station list. Add
"coach_station" (🚌) and "bus_stop" (🚏) emoji types to map.js.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 12:13:42 +00:00
960b4a1fc7 Add bus journeys. 2026-02-18 09:39:51 +00:00
c423ec45ea Tighten map marker styling 2025-11-13 06:51:21 +00:00
88d10af3f5 New travel type: coach
Fixes #149
2025-07-25 18:16:34 +01:00
7587c3d3b7 Add map size toggle button to trip page
Closes: #178
2024-10-13 10:12:39 +01:00
cf4508719a Switch tech conference emojii from 🎤 to 🖥️. 2024-08-17 14:40:04 +01:00
096e0a371e Adjust overlap of markers 2024-05-06 12:48:06 +03:00
dd82470835 Arrange map markers to overlap less 2024-05-06 11:36:00 +03:00
4fa7647584 Add ferry terminal icon 2024-05-01 15:00:24 +03:00
afa2a2e934 Show ferry routes and terminals on the map 2024-05-01 11:59:21 +03:00
89ff92c533 Show linked events on trip page
Closes: #124
2024-01-24 12:03:56 +00:00
3a7784bb25 Show unbooked flights in orange
Closes: #114
2024-01-16 17:11:55 +00:00
c6cc3fc558 Polyfill to make map work on old browsers 2024-01-16 09:00:03 +00:00
e6cffdd3d5 Show venue pins on the map
Closes: #108
2024-01-14 21:43:10 +00:00
f8658a7850 Put map icons in a circle 2024-01-14 21:28:56 +00:00
7ca5eafd1d Show accommodation pins on the map 2024-01-14 21:00:19 +00:00
7883c89b76 Refactor 2024-01-14 16:50:16 +00:00
36b5d38274 Show map of past trips 2024-01-14 12:17:22 +00:00
bd61b1bccd Move map code into dedicated JS file 2024-01-14 12:01:33 +00:00
3ee3df8970 Use calendar emoji as favicon 2023-11-13 12:08:55 +00:00
e0628f8d4e Different favicon 2023-11-13 08:42:18 +00:00
e6e113e14a Show traceback on error
Closes: #21
2023-10-06 23:29:22 +01:00