feat: cover image fallback for home grid cards

- index.php: batch-load thesis_files covers for theses without banner_path
- Resolution order: banner_path → cover file → gradient placeholder
- Uses single IN() query to avoid N+1 problem
This commit is contained in:
Pontoporeia
2026-03-24 15:39:23 +01:00
parent 372abb5cd6
commit ed2b06a34c
2 changed files with 27 additions and 2 deletions

View File

@@ -322,7 +322,7 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis
- [x] Add flake.nix for Nix-based PHP dev environment
- [x] Add favicon (`<link rel="icon">` → admin_favicon.svg) to all pages; nginx 204 for /favicon.ico
- [x] Remove 100-item cap from répertoire student index: `getAllPublishedTheses()` fetches all published theses; search results remain paginated at 30/page
- [ ] Thumbnail generation / cover image support for home grid cards
- [x] Cover image fallback for home grid cards: batch-load `thesis_files` covers for theses without `banner_path`; resolution order: banner → cover → gradient
## Admin / Server