Add recipe link, fix step count, add nav counts

- Make recipe name clickable link to recipe page on run detail
- Fix step count to use plan.steps length as fallback
- Add nav_counts support to base template for showing counts in brackets
- Add get_nav_counts helper in dependencies
- Pass nav_counts on home page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-12 12:53:00 +00:00
parent 73cc3e7c2f
commit 9bb1c4278e
4 changed files with 61 additions and 7 deletions

View File

@@ -77,6 +77,7 @@ async def home(request: Request):
user=user,
readme_html=readme_html,
stats=stats,
nav_counts=stats, # Reuse stats for nav counts
active_tab="home",
)