refactor: Event -> BusyPeriod
2 files changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/calendar/calendar.go → internal/calendar/calendar.go
@@ -46,7 +46,7 @@ } type CalendarDate struct { Date - Events []*Busy + BusyPeriods []*Busy } func New(opts *Options, logger *log.Logger) *Calendar {@@ -219,7 +219,7 @@ for _, ev := range evs { c.log.Debug("processing event", "id", ev.Id()) - cd.Events = append(cd.Events, ev) + cd.BusyPeriods = append(cd.BusyPeriods, ev) } cds = append(cds, cd)
M templates/calendar.go → templates/calendar.go
@@ -46,7 +46,7 @@ Time( DateTime(date.Format(time.DateOnly)), g.Text(date.Format("Mon _2"))), ), - g.Map(date.Events, func(e *calendar.Busy) g.Node { + g.Map(date.BusyPeriods, func(e *calendar.Busy) g.Node { return Div( Class("event"), TitleAttr(