lib.itmens/catalog/templates/performance.html

70 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2023-02-15 23:45:12 -05:00
{% extends "item_base.html" %}
{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load mastodon %}
{% load strip_scheme %}
{% load thumb %}
<!-- class specific details -->
{% block details %}
2024-07-15 22:18:25 -04:00
<div>{% include '_people.html' with people=item.additional_title _role='' max=99 %}</div>
2023-06-05 11:45:57 -04:00
<div>
{% if item.opening_date %}
2024-05-19 16:32:59 -04:00
{% trans "opening date" %}:
<span>{{ item.opening_date }}</span>
2023-06-05 11:45:57 -04:00
{% if item.closing_date %}~ <span>{{ item.closing_date }}</span>{% endif %}
{% endif %}
</div>
2024-05-19 16:32:59 -04:00
<div>{% include '_people.html' with people=item.genre role='genre' max=5 %}</div>
<div>{% include '_people.html' with people=item.troupe role='troupe' max=5 %}</div>
<div>{% include '_people.html' with people=item.location role='theater' max=5 %}</div>
<div>{% include '_people.html' with people=item.language role='language' max=5 %}</div>
<div>{% include '_people.html' with people=item.orig_creator role='original creator' max=5 %}</div>
<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.composer role='composer' max=5 %}</div>
<div>{% include '_people.html' with people=item.choreographer role='choreographer' max=5 %}</div>
<div>{% include '_actor.html' with people=item.actor role='actor' max=10 %}</div>
<div>{% include '_people.html' with people=item.performer role='performer' max=10 %}</div>
<div>{% include '_crew.html' with people=item.crew_by_role role='crew' max=10 %}</div>
<div>
{% if item.official_site %}
2024-05-20 23:17:47 -04:00
{% trans 'website' %}: <span>{{ item.official_site|urlizetrunc:24 }}</span>
{% endif %}
</div>
2023-02-15 23:45:12 -05:00
{% endblock %}
2023-06-05 02:04:52 -04:00
{% block content %}
2023-06-05 03:39:37 -04:00
{% with item.all_productions as productions %}
2023-06-05 02:28:40 -04:00
{% if productions %}
2024-05-19 16:32:59 -04:00
<h5>{% trans 'production' %}</h5>
2023-06-05 02:04:52 -04:00
<div>
2023-06-05 02:28:40 -04:00
{% for prod in productions %}
<hgroup>
<h6>
2024-07-13 01:36:18 -04:00
<a href="{{ prod.url }}">{{ prod.display_title }}</a>
2023-06-05 02:28:40 -04:00
</h6>
<div>
2023-06-05 11:45:57 -04:00
{% if prod.opening_date %}
<span>{{ prod.opening_date }}</span>
{% if prod.closing_date %}~ <span>{{ prod.closing_date }}</span>{% endif %}
{% endif %}
2024-05-19 16:32:59 -04:00
{% include '_people.html' with people=prod.troupe _role='troupe' max=2 %}
{% include '_people.html' with people=prod.location _role='production theater' max=2 %}
{% include '_people.html' with people=prod.language _role='language' max=5 %}
2023-06-05 02:28:40 -04:00
</div>
<div class="tldr-2">
2024-05-19 16:32:59 -04:00
{% include '_people.html' with people=prod.director role='director' max=2 %}
{% include '_people.html' with people=prod.playwright role='playwright' max=2 %}
{% include '_actor.html' with people=prod.actor role='actor' max=5 %}
{% include '_people.html' with people=prod.performer role='performer' max=5 %}
{% include '_people.html' with people=prod.composer role='composer' max=2 %}
{% include '_people.html' with people=prod.choreographer role='choreographer' max=2 %}
2023-06-05 02:28:40 -04:00
</div>
</hgroup>
{% endfor %}
2023-06-05 02:04:52 -04:00
</div>
2023-06-05 02:28:40 -04:00
{% endif %}
{% endwith %}
2023-06-05 02:04:52 -04:00
{% endblock %}