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:
1
browser/templates/_types/auth/_fragment_panel.html
Normal file
1
browser/templates/_types/auth/_fragment_panel.html
Normal file
@@ -0,0 +1 @@
|
||||
{{ page_fragment_html | safe }}
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user