From 193014a4d80f04085d7432c9cc0a3a31275b5ee7 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 13:02:11 +0000 Subject: [PATCH] fix: replace stale blog.post.calendars.* endpoint refs with calendars.* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Calendar blueprints moved to standalone events service — blog app no longer registers these routes. Replace all url_for/has_access references from blog.post.calendars.X to calendars.X across 38 shared calendar templates. Also replace blog.post.post_detail cross-links with coop_url() for cross-service navigation. Co-Authored-By: Claude Opus 4.6 --- .../_types/calendar/_main_panel.html | 20 +++++++++---------- .../_types/calendar/admin/_description.html | 2 +- .../calendar/admin/_description_edit.html | 4 ++-- .../_types/calendar/admin/_main_panel.html | 2 +- .../_types/calendar/admin/header/_header.html | 2 +- .../_types/calendars/_calendars_list.html | 4 ++-- .../_types/calendars/_main_panel.html | 4 ++-- suma_browser/templates/_types/day/_add.html | 4 ++-- .../templates/_types/day/_add_button.html | 2 +- suma_browser/templates/_types/day/_nav.html | 4 ++-- suma_browser/templates/_types/day/_row.html | 4 ++-- .../_types/day/admin/_nav_entries_oob.html | 2 +- .../_types/day/admin/header/_header.html | 2 +- .../templates/_types/day/header/_header.html | 2 +- .../templates/_types/entry/_edit.html | 4 ++-- .../templates/_types/entry/_main_panel.html | 2 +- suma_browser/templates/_types/entry/_nav.html | 4 ++-- .../templates/_types/entry/_options.html | 6 +++--- .../_types/entry/_post_search_results.html | 4 ++-- .../templates/_types/entry/_posts.html | 4 ++-- .../templates/_types/entry/_tickets.html | 2 +- .../templates/_types/entry/admin/_nav.html | 2 +- .../_types/entry/admin/_nav_posts_oob.html | 2 +- .../_types/entry/admin/header/_header.html | 2 +- .../_types/entry/header/_header.html | 2 +- suma_browser/templates/_types/slot/_edit.html | 4 ++-- .../templates/_types/slot/_main_panel.html | 2 +- .../templates/_types/slot/header/_header.html | 2 +- suma_browser/templates/_types/slots/_add.html | 4 ++-- .../templates/_types/slots/_add_button.html | 2 +- suma_browser/templates/_types/slots/_row.html | 4 ++-- .../_types/slots/header/_header.html | 2 +- .../templates/_types/ticket_type/_edit.html | 4 ++-- .../_types/ticket_type/_main_panel.html | 2 +- .../_types/ticket_type/header/_header.html | 2 +- .../templates/_types/ticket_types/_add.html | 4 ++-- .../_types/ticket_types/_add_button.html | 2 +- .../templates/_types/ticket_types/_row.html | 4 ++-- .../_types/ticket_types/header/_header.html | 2 +- 39 files changed, 66 insertions(+), 66 deletions(-) diff --git a/suma_browser/templates/_types/calendar/_main_panel.html b/suma_browser/templates/_types/calendar/_main_panel.html index f2f781a..48ae736 100644 --- a/suma_browser/templates/_types/calendar/_main_panel.html +++ b/suma_browser/templates/_types/calendar/_main_panel.html @@ -6,12 +6,12 @@ {# Outer left: -1 year #}
- {% set calendar_href = url_for('blog.post.calendars.calendar.get', slug=post.slug, calendar_slug=cal.slug)|host%} + {% set calendar_href = url_for('calendars.calendar.get', slug=post.slug, calendar_slug=cal.slug)|host%} - {% if has_access('blog.post.calendars.create_calendar') %} + {% if has_access('calendars.create_calendar') %}
{% call links.link( url_for( - 'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', + 'calendars.calendar.day.calendar_entries.calendar_entry.get', slug=post.slug, calendar_slug=calendar.slug, day=day, @@ -24,7 +24,7 @@
{% call links.link( url_for( - 'blog.post.calendars.calendar.slots.slot.get', + 'calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=entry.slot.id diff --git a/suma_browser/templates/_types/day/admin/_nav_entries_oob.html b/suma_browser/templates/_types/day/admin/_nav_entries_oob.html index 957246b..d72fc90 100644 --- a/suma_browser/templates/_types/day/admin/_nav_entries_oob.html +++ b/suma_browser/templates/_types/day/admin/_nav_entries_oob.html @@ -9,7 +9,7 @@ {% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %} {% if entry_post.feature_image %} {% if entry_post.feature_image %} diff --git a/suma_browser/templates/_types/entry/admin/header/_header.html b/suma_browser/templates/_types/entry/admin/header/_header.html index eb029a1..ea06833 100644 --- a/suma_browser/templates/_types/entry/admin/header/_header.html +++ b/suma_browser/templates/_types/entry/admin/header/_header.html @@ -3,7 +3,7 @@ {% call links.menu_row(id='entry-admin-row', oob=oob) %} {% call links.link( url_for( - 'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.admin.admin', + 'calendars.calendar.day.calendar_entries.calendar_entry.admin.admin', slug=post.slug, calendar_slug=calendar.slug, day=day, diff --git a/suma_browser/templates/_types/entry/header/_header.html b/suma_browser/templates/_types/entry/header/_header.html index eef03bb..6d0680c 100644 --- a/suma_browser/templates/_types/entry/header/_header.html +++ b/suma_browser/templates/_types/entry/header/_header.html @@ -3,7 +3,7 @@ {% call links.menu_row(id='entry-row', oob=oob) %} {% call links.link( url_for( - 'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', + 'calendars.calendar.day.calendar_entries.calendar_entry.get', slug=post.slug, calendar_slug=calendar.slug, day=day, diff --git a/suma_browser/templates/_types/slot/_edit.html b/suma_browser/templates/_types/slot/_edit.html index 79b18cf..deebc4f 100644 --- a/suma_browser/templates/_types/slot/_edit.html +++ b/suma_browser/templates/_types/slot/_edit.html @@ -3,7 +3,7 @@
diff --git a/suma_browser/templates/_types/slots/_add.html b/suma_browser/templates/_types/slots/_add.html index f2959d8..83e8cbd 100644 --- a/suma_browser/templates/_types/slots/_add.html +++ b/suma_browser/templates/_types/slots/_add.html @@ -1,5 +1,5 @@
{% call links.link( - url_for('blog.post.calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=s.id), + url_for('calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=s.id), hx_select_search, aclass=styles.pill ) %} @@ -46,7 +46,7 @@ data-confirm-confirm-text="Yes, delete it" data-confirm-cancel-text="Cancel" data-confirm-event="confirmed" - hx-delete="{{ url_for('blog.post.calendars.calendar.slots.slot.slot_delete', + hx-delete="{{ url_for('calendars.calendar.slots.slot.slot_delete', slug=post.slug, calendar_slug=calendar.slug, slot_id=s.id) }}" diff --git a/suma_browser/templates/_types/slots/header/_header.html b/suma_browser/templates/_types/slots/header/_header.html index f0221e4..110fb29 100644 --- a/suma_browser/templates/_types/slots/header/_header.html +++ b/suma_browser/templates/_types/slots/header/_header.html @@ -2,7 +2,7 @@ {% macro header_row(oob=False) %} {% call links.menu_row(id='slots-row', oob=oob) %} {% call links.link( - url_for('blog.post.calendars.calendar.slots.get', slug=post.slug, calendar_slug= calendar.slug), + url_for('calendars.calendar.slots.get', slug=post.slug, calendar_slug= calendar.slug), hx_select_search, ) %} diff --git a/suma_browser/templates/_types/ticket_type/_edit.html b/suma_browser/templates/_types/ticket_type/_edit.html index 857bdc8..b8326c6 100644 --- a/suma_browser/templates/_types/ticket_type/_edit.html +++ b/suma_browser/templates/_types/ticket_type/_edit.html @@ -3,7 +3,7 @@
{% call links.link( url_for( - 'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', + 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', slug=post.slug, calendar_slug=calendar.slug, year=year, @@ -36,7 +36,7 @@ data-confirm-confirm-text="Yes, delete it" data-confirm-cancel-text="Cancel" data-confirm-event="confirmed" - hx-delete="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.delete', + hx-delete="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.delete', slug=post.slug, calendar_slug=calendar.slug, year=year, diff --git a/suma_browser/templates/_types/ticket_types/header/_header.html b/suma_browser/templates/_types/ticket_types/header/_header.html index 84165a1..757ab8f 100644 --- a/suma_browser/templates/_types/ticket_types/header/_header.html +++ b/suma_browser/templates/_types/ticket_types/header/_header.html @@ -2,7 +2,7 @@ {% macro header_row(oob=False) %} {% call links.menu_row(id='ticket_types-row', oob=oob) %} {% call links.link(url_for( - 'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get', + 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get', slug=post.slug, calendar_slug=calendar.slug, entry_id=entry.id,