From db7342c7d2d806b581054507ccaa8161fc5de917 Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 27 Feb 2026 10:03:58 +0000 Subject: [PATCH] Fix events: add missing _nav_entries_oob.html template Template exists in blog but was missing from events, causing TemplateNotFound on calendar creation. Co-Authored-By: Claude Opus 4.6 --- .../_types/post/admin/_nav_entries_oob.html | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 events/templates/_types/post/admin/_nav_entries_oob.html diff --git a/events/templates/_types/post/admin/_nav_entries_oob.html b/events/templates/_types/post/admin/_nav_entries_oob.html new file mode 100644 index 0000000..eecc3d5 --- /dev/null +++ b/events/templates/_types/post/admin/_nav_entries_oob.html @@ -0,0 +1,80 @@ +{# OOB swap for nav entries and calendars when toggling associations or editing calendars #} +{% import 'macros/links.html' as links %} + +{# Associated Entries and Calendars - vertical on mobile, horizontal with arrows on desktop #} +{% if (associated_entries and associated_entries.entries) or calendars %} +
+ {# Left scroll arrow - desktop only #} + + +
+
+ {# Calendar entries #} + {% if associated_entries and associated_entries.entries %} + {% for entry in associated_entries.entries %} + {% set _entry_path = '/' + post.slug + '/calendars/' + entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} + +
+
+
{{ entry.name }}
+
+ {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }} + {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} +
+
+
+ {% endfor %} + {% endif %} + {# Calendar links #} + {% if calendars %} + {% for calendar in calendars %} + {% set local_href=events_url('/' + post.slug + '/calendars/' + calendar.slug + '/') %} + + +
{{calendar.name}}
+
+ {% endfor %} + {% endif %} +
+
+ + + + {# Right scroll arrow - desktop only #} + +
+{% else %} + {# Empty placeholder to remove nav items when all are disassociated/deleted #} +
+{% endif %}