diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-09 01:41:48 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-09 01:41:48 -0700 |
| commit | 2f3a891d0944a3b200d3dda949475bf9e1742f56 (patch) | |
| tree | 4c843a5efdf6c6f804341e6f2b36c91febacbd50 /templates/detail.html | |
| parent | f252b534afeb22b4b88208552810901ea607d0f5 (diff) | |
Add IMDb, Rotten Tomatoes, and Metacritic ratings to film detail
Fetches ratings from OMDB API in parallel with TMDB context. Displays
three side-by-side chips between the subtitle and watch log panels.
Requires OMDB_API_KEY in .env; degrades silently if missing or no match.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/detail.html')
| -rw-r--r-- | templates/detail.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/detail.html b/templates/detail.html index 83bd26a..5bf4b3f 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -62,6 +62,29 @@ {% endif %} </p> + {% if ratings %} + <div class="ratings-row"> + {% if ratings.imdb %} + <div class="rating-chip"> + <span class="rating-chip-label">IMDb</span> + <span class="rating-chip-value">{{ ratings.imdb }}</span> + </div> + {% endif %} + {% if ratings.rt %} + <div class="rating-chip"> + <span class="rating-chip-label">Rotten Tomatoes</span> + <span class="rating-chip-value">{{ ratings.rt }}</span> + </div> + {% endif %} + {% if ratings.metacritic %} + <div class="rating-chip"> + <span class="rating-chip-label">Metacritic</span> + <span class="rating-chip-value">{{ ratings.metacritic }}</span> + </div> + {% endif %} + </div> + {% endif %} + <section class="detail-grid"> <article class="detail-panel"> <p class="eyebrow">Watch log</p> |
