lib.itmens/catalog/templates/tvseason.html

83 lines
2.7 KiB
HTML
Raw Normal View History

2022-12-15 17:29:35 -05:00
{% extends "item_base.html" %}
{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load mastodon %}
{% load strip_scheme %}
{% load thumb %}
2024-05-19 16:32:59 -04:00
<!-- class specific details -->
2022-12-15 17:29:35 -05:00
{% block details %}
<div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
2023-05-21 17:14:35 -04:00
{% with item.all_seasons as seasons %}
{% if seasons %}
<div>
2024-05-19 16:32:59 -04:00
{% trans 'all seasons' %}:
2023-05-21 17:14:35 -04:00
{% for s in seasons %}
<span class="season-number">
<a {% if s == item %}class="current" {% else %} href="{{ s.url }}" {% endif %}>{{ s.season_number|default:"#" }}</a>
</span>
{% endfor %}
</div>
{% endif %}
{% endwith %}
2024-05-19 16:32:59 -04:00
<div>{% include '_people.html' with people=item.director role='director' max=5 %}</div>
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>
<div>{% include '_people.html' with people=item.genre role='genre' max=10 %}</div>
2024-06-16 15:37:54 -04:00
<div>{% include '_people.html' with people=item.area role='region' max=10 %}</div>
2024-05-19 16:32:59 -04:00
<div>{% include '_people.html' with people=item.language role='language' max=5 %}</div>
<div>
2024-05-19 16:32:59 -04:00
{% if item.season_number %}
{% trans 'season number' %}: {{ item.season_number }}
{% endif %}
</div>
<div>
2024-05-19 16:32:59 -04:00
{% if item.season_count %}
{% trans 'number of seasons' %}: {{ item.season_count }}
{% endif %}
</div>
<div>
2024-05-19 16:32:59 -04:00
{% if item.episode_count %}
{% trans 'number of episodes' %}: {{ item.episode_count }}
{% endif %}
</div>
<div>
2024-05-19 16:32:59 -04:00
{% if item.single_episode_length %}
{% trans 'episode Length' %}: {{ item.single_episode_length }}
{% endif %}
</div>
<div>
2024-05-19 16:32:59 -04:00
{% if item.duration %}
{% trans 'length' %}: {{ item.duration }}
{% endif %}
</div>
2023-05-21 17:14:35 -04:00
<div>
{% if item.showtime %}
2024-05-19 16:32:59 -04:00
{% trans 'release date' %}:
2023-05-21 17:14:35 -04:00
{% for showtime in item.showtime %}
2023-06-07 04:14:38 -04:00
<span>{{ showtime.time }}
{% if showtime.region %}({{ showtime.region }}){% endif %}
</span>
2023-05-21 17:14:35 -04:00
{% if not forloop.last %}/{% endif %}
{% endfor %}
{% endif %}
</div>
<div>
{% if item.imdb %}
2024-05-19 16:32:59 -04:00
{% trans 'IMDb' %}: <a href="https://www.imdb.com/title/{{ item.imdb }}/"
target="_blank"
rel="noopener">{{ item.imdb }}</a>
2023-05-21 17:14:35 -04:00
{% endif %}
</div>
<div>
{% if item.site %}
2024-05-19 16:32:59 -04:00
{% trans 'website' %}:
2023-05-21 17:14:35 -04:00
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>
{% endif %}
</div>
{% if item.other_info %}
2024-05-20 23:17:47 -04:00
{% for k, v in item.other_info.items %}<div>{{ k }}: {{ v|urlizetrunc:24 }}</div>{% endfor %}
{% endif %}
2022-12-15 17:29:35 -05:00
{% endblock %}