feat: display 'DLCs' explicitly when the related item name is 'dlcs' in media details

This commit is contained in:
FuzzyGrim
2026-02-08 16:18:40 +01:00
parent 010491549a
commit 2d670fd43f

View File

@@ -475,7 +475,13 @@
{% for name, related_items in media.related.items %}
{% if related_items %}
<section class="{% if not forloop.last %}mb-8{% endif %}">
<h2 class="text-xl font-bold mb-4">{{ name|no_underscore|title }}</h2>
<h2 class="text-xl font-bold mb-4">
{% if name == "dlcs" %}
DLCs
{% else %}
{{ name|no_underscore|title }}
{% endif %}
</h2>
<div class="grid grid-cols-[repeat(auto-fill,minmax(150px,1fr))] gap-4">
{% for result in related_items %}
{# Set active to highlight the current movie in a collection. Avoid TV media, since seasons have same ID as the parent show #}