From 364634151d756ce28060e9a982019e7f7bdb17cc Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Thu, 7 May 2026 00:21:24 -0700 Subject: Add rewatch history to film detail page Display all watches for a film with dates, ratings, and companions. Show time elapsed between rewatches and highlight when rating changed. Co-Authored-By: Claude Haiku 4.5 --- templates/detail.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'templates') diff --git a/templates/detail.html b/templates/detail.html index 156dec2..325b0c1 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -87,6 +87,37 @@ + {% if rewatch_history and rewatch_history|length > 1 %} +
+

Rewatches

+
+ {% for entry in rewatch_history %} +
+
+

{{ entry.date_watched }}

+

+ {% for _ in range(entry.stars) %}✦{% endfor %} + {% if entry.watched_with %}with {{ entry.watched_with }}{% endif %} +

+
+ {% if loop.length > 1 and not loop.first %} + + {% set prev_entry = rewatch_history[loop.index - 2] %} + {% if prev_entry.date_watched %} + {% set days = (entry.date_watched - prev_entry.date_watched).days %} + {{ days }}d + {% if entry.stars != prev_entry.stars %} + ({{ prev_entry.stars }}→{{ entry.stars }}) + {% endif %} + {% endif %} + + {% endif %} +
+ {% endfor %} +
+
+ {% endif %} + {% if tmdb_context %}

Summary

-- cgit v1.3-2-g0d8e