diff --git a/agenda/accommodation.py b/agenda/accommodation.py index f5b7e83..59eb111 100644 --- a/agenda/accommodation.py +++ b/agenda/accommodation.py @@ -1,4 +1,4 @@ -"""Accomodation""" +"""Accommodation.""" import yaml @@ -6,7 +6,7 @@ from .types import Event def get_events(filepath: str) -> list[Event]: - """Get accomodation from YAML.""" + """Get accommodation from YAML.""" with open(filepath) as f: return [ Event( diff --git a/agenda/carnival.py b/agenda/carnival.py index 41a995b..c6f429d 100644 --- a/agenda/carnival.py +++ b/agenda/carnival.py @@ -1,4 +1,4 @@ -"""Calcuate the date for carnival.""" +"""Calculate the date for carnival.""" from datetime import date, timedelta diff --git a/agenda/data.py b/agenda/data.py index a18d74d..d640557 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -42,7 +42,7 @@ here = dateutil.tz.tzlocal() # deadline to file tax return # credit card expiry dates # morzine ski lifts -# chalet availablity calendar +# chalet availability calendar # starlink visible diff --git a/agenda/domains.py b/agenda/domains.py index 99c614e..89aae32 100644 --- a/agenda/domains.py +++ b/agenda/domains.py @@ -1,4 +1,4 @@ -"""Accomodation.""" +"""Domain renewal dates.""" import csv import os diff --git a/templates/birthday_list.html b/templates/birthday_list.html new file mode 100644 index 0000000..7346bae --- /dev/null +++ b/templates/birthday_list.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% from "macros.html" import display_date %} +{% block title %}Birthdays - Edward Betts{% endblock %} + +{% block content %} +
+

Birthdays

+ + {% for event in items %} + + + + + {% endfor %} +
{{event.as_date.strftime("%a, %d, %b")}}{{ event.title }}
+
+{% endblock %} diff --git a/templates/navbar.html b/templates/navbar.html index 04fa3f9..42626fd 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -11,7 +11,9 @@ {"endpoint": "weekends", "label": "Weekend" }, {"endpoint": "launch_list", "label": "Space launch" }, {"endpoint": "holiday_list", "label": "Holiday" }, -] %} + ] + ([{"endpoint": "birthday_list", "label": "Birthdays" }] + if g.user.is_authenticated else []) + %}