Add global all-events view at / and scope page summary to single page
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 53s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 53s
Root / shows all upcoming events across all pages with page badges. /<slug>/ reverted to show only that page's events. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
8
app.py
8
app.py
@@ -8,7 +8,7 @@ from jinja2 import FileSystemLoader, ChoiceLoader
|
||||
|
||||
from shared.infrastructure.factory import create_base_app
|
||||
|
||||
from bp import register_calendars, register_markets, register_payments, register_page
|
||||
from bp import register_all_events, register_calendars, register_markets, register_payments, register_page
|
||||
|
||||
|
||||
async def events_context() -> dict:
|
||||
@@ -55,6 +55,12 @@ def create_app() -> "Quart":
|
||||
app.jinja_loader,
|
||||
])
|
||||
|
||||
# All events: / — global view across all pages
|
||||
app.register_blueprint(
|
||||
register_all_events(),
|
||||
url_prefix="/",
|
||||
)
|
||||
|
||||
# Page summary: /<slug>/ — upcoming events across all calendars
|
||||
app.register_blueprint(
|
||||
register_page(),
|
||||
|
||||
Reference in New Issue
Block a user