chore: metadata display consistency

This commit is contained in:
Cory Dransfeldt 2024-08-05 18:29:06 -07:00
parent 572d074fea
commit 8da88d97b4
No known key found for this signature in database
7 changed files with 23 additions and 14 deletions

View file

@ -33,7 +33,14 @@ schema: movie
/>
<div class="watching-meta">
<p class="title"><strong>{{ movie.title }}</strong></p>
{% if movie.rating %}<p class="rating">{{ movie.rating }}</p>{% endif %}
<p>
{%- if movie.rating -%}
{{ movie.rating }}
{% endif -%}
{%- if movie.year %}
({{ movie.year }})
{%- endif -%}
</p>
{% if movie.lastWatched %}<p class="sub-meta">Last watched on {{ movie.lastWatched | date: "%B %e, %Y" }}</p>{% endif %}
<p class="sub-meta"><a href="https://themoviedb.org/movie/{{ movie.id }}" title="View {{ movie.title | escape }} on TMDB">View on TMDB</a></p>
</div>

View file

@ -33,8 +33,8 @@ schema: show
height="720"
/>
<div class="watching-meta">
<p class="title"><strong>{{ show.title }}</strong></p>
{% if lastWatched %}<p class="sub-meta">Last watched on {{ lastWatched | date: "%B %e, %Y" }}</p>{% endif %}
<p class="title"><strong>{{ show.title }}</strong>{%- if show.year %} ({{ show.year }}){%- endif -%}</p>
{%- if lastWatched -%}<p class="sub-meta">Last watched on {{ lastWatched | date: "%B %e, %Y" }}</p>{%- endif -%}
<p class="sub-meta"><a href="https://themoviedb.org/tv/{{ show.tmdb_id }}" title="View {{ show.title | escape }} on TMDB">View on TMDB</a></p>
</div>
{% if show.review %}