From ae134907a46ca9b1111a10e1d41f769d2bf5f998 Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 27 Feb 2026 10:05:23 +0000 Subject: [PATCH] Move _nav_entries_oob.html to shared templates instead of duplicating MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Used by both blog and events — belongs in shared/browser/templates where the ChoiceLoader fallback resolves it for all apps. Co-Authored-By: Claude Opus 4.6 --- .../_types/post/admin/_nav_entries_oob.html | 80 ------------------- .../_types/post/admin/_nav_entries_oob.html | 0 2 files changed, 80 deletions(-) delete mode 100644 events/templates/_types/post/admin/_nav_entries_oob.html rename {blog => shared/browser}/templates/_types/post/admin/_nav_entries_oob.html (100%) diff --git a/events/templates/_types/post/admin/_nav_entries_oob.html b/events/templates/_types/post/admin/_nav_entries_oob.html deleted file mode 100644 index eecc3d5..0000000 --- a/events/templates/_types/post/admin/_nav_entries_oob.html +++ /dev/null @@ -1,80 +0,0 @@ -{# 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 %} diff --git a/blog/templates/_types/post/admin/_nav_entries_oob.html b/shared/browser/templates/_types/post/admin/_nav_entries_oob.html similarity index 100% rename from blog/templates/_types/post/admin/_nav_entries_oob.html rename to shared/browser/templates/_types/post/admin/_nav_entries_oob.html