mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-06-28 06:45:58 +00:00
feat: display 'DLCs' explicitly when the related item name is 'dlcs' in media details
This commit is contained in:
@@ -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 #}
|
||||
|
||||
Reference in New Issue
Block a user