- commit
- ecf87538083b71f5a37dff0258697ccbbbaaf996
- parent
- 9f69338ba936fe65a4c31774f1f626fcf3329d82
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-03-07 07:05
display canonical collection instead of series next() already uses canonical_collection
Diffstat
M | templates/series.html | 2 | +- |
M | templates/video.html | 15 | ++++++++++----- |
2 files changed, 11 insertions, 6 deletions
diff --git a/templates/series.html b/templates/series.html
@@ -2,7 +2,7 @@ 2 2 3 3 {% block list %} 4 4 {% for season in seasons|reverse %}5 -1 <h2 id="season-{{ season.season_number }}">{{ season.title }}</h2>-1 5 <h2 id="season-{{ season.id }}">{{ season.title }}</h2> 6 6 <time title="{{ season|release|isodate }}">{{ season|release|reldate }}</time> 7 7 {%+ if season.description %}<div class="description">{{ season.description|linebreaks }}</div>{% endif %} 8 8 {% with items = season.episodes %}
diff --git a/templates/video.html b/templates/video.html
@@ -19,11 +19,16 @@ 19 19 <div class="wrapper"> 20 20 <h1>{{ video.title }}</h1> 21 21 <div class="meta">22 -1 {% if video.metadata.series_id %}23 -1 <a href="/series/{{ video.metadata.series_id }}/">{{ video.metadata.series_name }}</a>24 -1 <a href="/series/{{ video.metadata.series_id }}/#season-{{ video.metadata.season_number }}" class="hidden-link">Season {{ video.metadata.season_number }}</a>,25 -1 Episode {{ video.metadata.episode_number }}26 -1 ·-1 22 {% if video.canonical_collection %} -1 23 {% if video.canonical_collection.parent %} -1 24 <a href="/series/{{ video.canonical_collection.parent.id }}/">{{ video.canonical_collection.parent.name }}</a>, -1 25 <a href="/series/{{ video.canonical_collection.parent.id }}/#season-{{ video.canonical_collection.id }}" class="hidden-link">{{ video.canonical_collection.name }}</a>, -1 26 Episode {{ video.episode_number }} -1 27 · -1 28 {% else %} -1 29 <a href="/movie/{{ video.canonical_collection.id }}/" class="hidden-link">{{ video.canonical_collection.name }}</a> -1 30 · -1 31 {% endif %} 27 32 {% endif %} 28 33 {{ video.duration|duration }} · 29 34 <time title="{{ video|release|isodate }}">{{ video|release|reldate }}</time>