From cdd28b6c0a3a6444b9ae79b123fe4fa7401de5ab Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Thu, 14 May 2026 01:31:34 -0700 Subject: Refine Lumi layouts and public profile --- templates/detail.html | 455 +++++++++++++++++++++++++++++++------------------- 1 file changed, 282 insertions(+), 173 deletions(-) (limited to 'templates/detail.html') diff --git a/templates/detail.html b/templates/detail.html index 9c558f7..f51372d 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -17,236 +17,335 @@ - - {% endif %} - -
-
- Shelf - {{ film.shelf|title }} -
-
- Watched - {% if film.date_watched %}{{ film.date_watched }}{% else %}Not set{% endif %} -
-
- Stars - {% if film.stars %}{% for _ in range(film.stars) %}✦{% endfor %}{% else %}Unstarred{% endif %} -
-
-

{{ film.shelf|title }} Entry

-

{{ film.title }}

- {% if film.original_title %} -

{{ film.original_title }}

- {% endif %} -
-

- {% if film.year %}{{ film.year }}{% endif %} - {% set directors = split_credit_names(film.director) %} - {% if directors %} - {% if film.year %} · {% endif %} - {% for director in directors %} - {{ director }}{% if not loop.last %}, {% endif %} - {% endfor %} +

+
+

{{ film.shelf|title }} Entry

+

{{ film.title }}

+ {% if film.original_title %} +

{{ film.original_title }}

{% endif %} -

- {% if ratings %} -
- {% if ratings.imdb %} - - IMDb - {{ ratings.imdb }} - - {% endif %} - {% if ratings.rt %} - - Rotten Tomatoes - {{ ratings.rt }} - - {% endif %} - {% if ratings.metacritic %} - - Metacritic - {{ ratings.metacritic }} - +
+

+ {% if film.year %}{{ film.year }}{% endif %} + {% set directors = split_credit_names(film.director) %} + {% if directors %} + {% if film.year %} · {% endif %} + {% for director in directors %} + {{ director }}{% if not loop.last %}, {% endif %} + {% endfor %} + {% endif %} +

+ {% if ratings %} +
+ {% if ratings.imdb %} + + IMDb + {{ ratings.imdb }} + + {% endif %} + {% if ratings.rt %} + + Rotten Tomatoes + {{ ratings.rt }} + + {% endif %} + {% if ratings.metacritic %} + + Metacritic + {{ ratings.metacritic }} + + {% endif %} +
+ {% endif %} +
+
+ +
+ Edit + {% if film.shelf == 'queue' %} + Mark watched +
+ +
+ {% elif film.shelf == 'diary' %} +
+ +
+
+ +
+ {% else %} + Mark watched +
+ +
{% endif %} +
+ +
- {% endif %} -
+
-
-
-

Watch log

-
- {% if film.date_watched %}{{ film.date_watched }}{% endif %} - {% if film.runtime %}{{ film.runtime }} min{% endif %} - {% if film.rewatch %}Rewatch{% if film.rewatch_count %} #{{ film.rewatch_count }}{% endif %}{% endif %} - {% if film.watched_with %}With {{ film.watched_with }}{% endif %} - {% if film.context %}{{ film.context }}{% endif %} - {% if film.how_found %}{{ film.how_found }}{% endif %} +
+
-
-

Production

-
- {% if film.genre %}{{ film.genre }}{% endif %} - {% if film.country %}{{ film.country }}{% endif %} - {% if film.language %}{{ film.language }}{% endif %} - {% if film.year %}{{ film.year }}{% endif %} - {% if film.tmdb_id %}TMDB {{ film.tmdb_id }}{% endif %} -
-
-
+
+

Watch log

+
+ {% if film.date_watched %} +
+ Watched + {{ film.date_watched }} +
+ {% endif %} + {% if film.runtime %} +
+ Runtime + {{ film.runtime }} min +
+ {% endif %} + {% if film.rewatch %} +
+ Rewatch + Yes{% if film.rewatch_count %} · #{{ film.rewatch_count }}{% endif %} +
+ {% endif %} + {% if film.watched_with %} +
+ With + {{ film.watched_with }} +
+ {% endif %} + {% if film.context %} +
+ Context + {{ film.context }} +
+ {% endif %} + {% if film.how_found %} +
+ Found + {{ film.how_found }} +
+ {% endif %} +
+
- {% if 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 %} -

+
+

Production

+
+ {% if film.genre %} +
+ Genre + {{ film.genre }} +
+ {% endif %} + {% if film.country %} +
+ Country + {{ film.country }} +
+ {% endif %} + {% if film.language %} +
+ Lang + {{ film.language }} +
+ {% endif %} + {% if film.year %} +
+ Year + {{ film.year }} +
+ {% endif %} + {% if film.tmdb_id %} +
+ TMDB + {{ film.tmdb_id }} +
+ {% endif %}
- {% if 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 }}) +
+ + +
+ {% if tmdb_context %} +
+

Summary

+ {% if tmdb_context.tagline %} +

{{ tmdb_context.tagline }}

+ {% endif %} + {% if tmdb_context.overview %} +

{{ tmdb_context.overview }}

{% endif %} + {% if tmdb_context.cast %} +
+ Cast +

{{ tmdb_context.cast|join(", ") }}

+
{% endif %} - +
+ {% endif %} + +
+

Notes

+ {% if film.notes %} +
{{ film.notes }}
+ {% else %} +

No notes saved.

{% endif %} -
- {% endfor %} -
-
- {% endif %} +
- {% if tmdb_context %} -
-

Summary

- {% if tmdb_context.tagline %} -

{{ tmdb_context.tagline }}

- {% endif %} - {% if tmdb_context.overview %} -

{{ tmdb_context.overview }}

- {% endif %} - {% if tmdb_context.cast %} -
- Cast -

{{ tmdb_context.cast|join(", ") }}

+ {% if 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 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 %} -
- {% endif %} - -
-

Notes

- {% if film.notes %} -
{{ film.notes }}
- {% else %} -

No notes saved.

- {% endif %} +
- -
- Edit - {% if film.shelf == 'queue' %} - Mark watched -
- -
- {% elif film.shelf == 'diary' %} -
- -
-
- -
- {% else %} - Mark watched -
- -
- {% endif %} -
- -
-
+ {% if film.tmdb_id %} + + {% endif %} + {% if film.tmdb_id %} {% endif %} -- cgit v1.3-2-g0d8e