chore: clean up templates
Summary
This MR implements a comprehensive resources page to replace the navbar dropdown, fixes yarr_scans pagination issues, and includes several template improvements from previous work. It is a bit absurd that toppage ended up being a catch-all which made the logic a bit confusing.
Key Changes
Resources Page Implementation
- Created dedicated /resources page with organized sections using Bootstrap cards and list groups
- Organized content into 6 main sections: Communication, Tracking Spreadsheets, Module Assembly & QC Procedures, Software Tools, Troubleshooting, and Data Reporting
- Content derived from https://indico.cern.ch/event/1393709/contributions/6705401/attachments/3142152/5577467/2025.09.24.ModuleDocumentation.pdf (@fpablo's slides)
Bug Fixes
- Fixed yarr_scans pagination - now uses 'page' parameter with 1-based indexing (consistent with other tables)
- Fixed total count display - yarr_scans now shows correct total results instead of current page count only
Template Refactoring (from previous work)
- Extracted assembly module (685 lines) from monolithic toppage.py, reducing it by 40%
- Created unified pagination widget with First/Last buttons and dropdown ellipsis for page ranges
- Standardized pagination variables across all tables (page, total_pages, total_count, etc.)
- Added breadcrumb widget for consistent navigation
- Consolidated CSS styling into shared template parts
- Fixed alternative ID search and radio button logic in component tables
Edited by Giordon Holtsberg Stark