Add breadcrumb navigation
All checks were successful
Deploy to Server / deploy (push) Successful in 20s
All checks were successful
Deploy to Server / deploy (push) Successful in 20s
This commit is contained in:
parent
ef00b4c020
commit
428f49879d
28 changed files with 350 additions and 416 deletions
|
|
@ -289,9 +289,6 @@ def campaign_detail_view(request: HttpRequest, kick_id: str) -> HttpResponse:
|
|||
campaign.rewards.order_by("required_units").select_related("category"), # type: ignore[union-attr]
|
||||
)
|
||||
channels: list[KickChannel] = list(campaign.channels.select_related("user"))
|
||||
reward_count: int = len(rewards)
|
||||
channels_count: int = len(channels)
|
||||
total_watch_minutes: int = sum(reward.required_units for reward in rewards)
|
||||
|
||||
breadcrumb_schema: str = _build_breadcrumb_schema([
|
||||
{"name": "Home", "url": request.build_absolute_uri("/")},
|
||||
|
|
@ -360,9 +357,6 @@ def campaign_detail_view(request: HttpRequest, kick_id: str) -> HttpResponse:
|
|||
"campaign": campaign,
|
||||
"rewards": rewards,
|
||||
"channels": channels,
|
||||
"reward_count": reward_count,
|
||||
"channels_count": channels_count,
|
||||
"total_watch_minutes": total_watch_minutes,
|
||||
"now": now,
|
||||
"breadcrumb_schema": breadcrumb_schema,
|
||||
**seo_context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue