Commit graph

479 commits

Author SHA1 Message Date
Edward Betts 8df94aaafb Code to run from cron to update bank holiday list 2024-01-16 11:12:43 +00:00
Edward Betts 3cb03a787c Add docstring 2024-01-16 11:12:13 +00:00
Edward Betts c6cc3fc558 Polyfill to make map work on old browsers 2024-01-16 09:00:03 +00:00
Edward Betts b061262120 Split code for holidays into separate file 2024-01-16 07:42:44 +00:00
Edward Betts a6a78d18e5 Bug fix conferences can have lat/lon 2024-01-14 21:57:54 +00:00
Edward Betts e6cffdd3d5 Show venue pins on the map
Closes: #108
2024-01-14 21:43:10 +00:00
Edward Betts f8658a7850 Put map icons in a circle 2024-01-14 21:28:56 +00:00
Edward Betts 1f8d465c6d Show accommodation pins on the map 2024-01-14 21:28:12 +00:00
Edward Betts 7ca5eafd1d Show accommodation pins on the map 2024-01-14 21:00:19 +00:00
Edward Betts f60a1a329c Link to more flight info sites 2024-01-14 18:16:20 +00:00
Edward Betts 283a9d0b27 Link from accommodation list to trip pages
Closes: #109
2024-01-14 17:57:02 +00:00
Edward Betts 31e8197c79 Link from conference list to trip pages 2024-01-14 17:23:50 +00:00
Edward Betts 36168843d6 Adjust template layout 2024-01-14 16:52:06 +00:00
Edward Betts 7883c89b76 Refactor 2024-01-14 16:50:16 +00:00
Edward Betts f3a4f1dcd1 Use unpkg.com as CDN to be consistent 2024-01-14 15:42:48 +00:00
Edward Betts e86bd69ddb Show number of days between trips 2024-01-14 12:35:15 +00:00
Edward Betts fbee775f5b Next trip and previous trip links on trip pages
Closes: #110
2024-01-14 12:29:39 +00:00
Edward Betts 36b5d38274 Show map of past trips 2024-01-14 12:17:22 +00:00
Edward Betts bd61b1bccd Move map code into dedicated JS file 2024-01-14 12:01:33 +00:00
Edward Betts fab478dc61 Rename trips.html template to trip_list.html 2024-01-14 10:32:52 +00:00
Edward Betts fd34190368 Map of all upcoming travel on trips page
Closes: #107
2024-01-14 10:31:51 +00:00
Edward Betts 4a990a9fe5 Move trip code into separate file 2024-01-14 10:14:05 +00:00
Edward Betts e0735b4185 Refresh space launches from cron because API is slow
Closes: #98
2024-01-14 08:04:05 +00:00
Edward Betts cb2a2c7fb8 Change colour of rail journey on map to blue 2024-01-13 18:20:02 +00:00
Edward Betts e2fdd1d198 Show rail routes using GeoJSON 2024-01-12 22:29:26 +00:00
Edward Betts 4e719a07ab Show flights and trains in different colours 2024-01-12 19:52:00 +00:00
Edward Betts 4b62ec96dc Make the map bigger 2024-01-12 19:43:22 +00:00
Edward Betts e993329939 Show lines connecting transport stops on map
Closes: #104
2024-01-12 17:17:12 +00:00
Edward Betts 4b8b1f7556 Show station and airport icons on the map 2024-01-12 16:54:52 +00:00
Edward Betts 0c02d9c899 Include airport pins on the map 2024-01-12 16:20:36 +00:00
Edward Betts 60070d07fd Add maps to trip pages
Closes: #102
2024-01-12 15:04:08 +00:00
Edward Betts a9c9c719a4 Return 404 not found for invalid trip IDs
Closes: #103
2024-01-12 14:08:36 +00:00
Edward Betts 2744f67987 Add pages for individual trips
Closes: #100
2024-01-12 14:04:06 +00:00
Edward Betts ad47f291f8 Add events to trips 2024-01-10 13:27:25 +00:00
Edward Betts 8504a3a022 Add radarbox.com links for flights 2024-01-10 13:26:59 +00:00
Edward Betts 82de51109f import datetime 2024-01-10 13:06:29 +00:00
Edward Betts 199eb82bce Add refresh option for Bristol waste schedule 2024-01-08 15:45:08 +00:00
Edward Betts 7456f72325 Update Bristol bins from cron to save time
Closes: #96
2024-01-08 15:43:31 +00:00
Edward Betts 1453c4015c Show timings for index page data gathering 2024-01-08 15:22:16 +00:00
Edward Betts cd0ffb3390 Hide LHG run club when on a trip
Closes: #95
2024-01-08 15:20:48 +00:00
Edward Betts 3d16e30aa8 Try and make mypy happy about types 2024-01-08 15:19:20 +00:00
Edward Betts acbad39df7 Download bank-holidays.json if the local copy is unreadable 2024-01-08 15:18:28 +00:00
Edward Betts 7a5319aa83 Improve trip template layout 2024-01-06 15:39:46 +00:00
Edward Betts 50127417f0 Show trip country list in order visited 2024-01-06 09:21:54 +00:00
Edward Betts fd6d3b674b Split up trips page and sort like conference page
Closes: #94
2024-01-06 09:17:34 +00:00
Edward Betts 21b67bdc64 Show end date for trips 2024-01-05 09:35:56 +00:00
Edward Betts ea33722f69 Add missing template 2024-01-04 22:57:05 +00:00
Edward Betts 3dddc52430 Merge branch 'main' of git.4angle.com:edward/agenda 2024-01-04 22:56:14 +00:00
Edward Betts ce9faa654f Add trips page
Creating a new entity called a trip. This will group together any travel
accommodation and conferences that happen together on one trip.

A trip is assumed to start when leaving home and finish when returning
home.

The start date of a trip in is the trip ID. The date is written in ISO
format.

This assumes there cannot be multiple trips one one day. This assumption
might be wrong, for example a morning day trip by rail, then another
trip starts in the afternoon. I can change my choice of using dates as
trip IDs if that happens.

Sometimes during the planning of a trip the start date is unknown. For
now we make up a start date, we can always change it later. If we use
the start date in URLs then the URLs will change. Might need to keep a
file of redirects, or could think of a different style of identifier.

Trip ID have been added to accommodation, conferences, trains and
flights.

Later there will be a trips.yaml with notes about each trip.
2024-01-04 22:56:07 +00:00
Edward Betts d9b1d77872 Add trips page
Creating a new entity called a trip. This will group together any travel
accommodation and conferences that happen together on one trip.

A trip is assumed to start when leaving home and finish when returning
home.

The start date of a trip in is the trip ID. The date is written in ISO
format.

This assumes there cannot be multiple trips one one day. This assumption
might be wrong, for example a morning day trip by rail, then another
trip starts in the afternoon. I can change my choice of using dates as
trip IDs if that happens.

Sometimes during the planning of a trip the start date is unknown. For
now we make up a start date, we can always change it later. If we use
the start date in URLs then the URLs will change. Might need to keep a
file of redirects, or could think of a different style of identifier.

Trip ID have been added to accommodation, conferences, trains and
flights.

Later there will be a trips.yaml with notes about each trip.
2024-01-04 22:55:19 +00:00