Replace account widgets with fragment composition (Phase 5)

Account nav links and page panels (tickets, bookings) now fetched
as HTML fragments from events app instead of using widget registry.
All three widget registration functions are now no-ops.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 13:56:29 +00:00
parent d2e07e047e
commit 65c4989d08
4 changed files with 13 additions and 60 deletions

View File

@@ -0,0 +1 @@
{{ page_fragment_html | safe }}

View File

@@ -2,16 +2,6 @@
{% call links.link(account_url('/newsletters/'), hx_select_search, select_colours, True, aclass=styles.nav_button) %}
newsletters
{% endcall %}
{% for link in account_nav_links %}
{% if link.external %}
<div class="relative nav-group">
<a href="{{ link.href_fn() }}" class="{{styles.nav_button}}" data-hx-disable>
{{ link.label }}
</a>
</div>
{% else %}
{% call links.link(link.href_fn(), hx_select_search, select_colours, True, aclass=styles.nav_button) %}
{{ link.label }}
{% endcall %}
{% endif %}
{% endfor %}
{% if account_nav_html %}
{{ account_nav_html | safe }}
{% endif %}