{% extends "arkestra/generic_list_item.html" %}
{% spaceless %}
{% block item_title %}
{# this item is the child of a series that shows the parent's title #}
{% if "series" in item.show_parent_series %}
{# the series is informative, so link to it #}
{% if not item.parent.is_uninformative %}
)({{item.parent.short_title}}
{% else %}
{{item.parent.short_title}}
{% endif %}
{# it should show its own title too #}
{% if "children" in item.show_parent_series %}
{% if "details" in everything.format and item.is_uninformative %}
{{ item.short_title }}
{% else %}
{% if item.external_url %}
{{item.short_title}} - {{ item.external_url.external_site }}
{% else %}
sd {{item.short_title}}
{% endif %}
{% endif %}
{% endif %}
{# either not a child of a series, or we don't display the parent's title #}
{% else %}
{% with class="title" %}
{% if item.external_url %}
sd {{item.short_title}} - {{ item.external_url.external_site }}
{% else %}
{% if item.parent.series and not item.parent.is_uninformative %}
sd {{item.short_title}}
{% else %}
{% if not "details" in lister.item_format or not item.is_uninformative %}
sd {{item.short_title}}
{% else %}
{{ item.short_title }}
{% endif %}
{% endif %}
{% endif %}
{% endwith %}
{% endif %}
{% endblock item_title %}
{% block item_date %}