{% load i18n %} {% load telemeta_tags %} {% load thumbnail %}

{% trans "Related media" %}

{% if related_media %}
{% for media in related_media %} {% if not media.mime_type in private_extra_types %} {% endif %} {% endfor %}
{% trans "Media" %} {% trans "Preview" %}
{% trans "Title" %}
{% if media.url %} {{ media }} {% else %} {{ media }} {% endif %}
{% trans "Description" %}
{{ media.description|html_line_break|safe }}
{% trans "Credits" %}
{{ media.credits }}
{% dl_field media "mime_type" %} {% if media.file %}
{% trans "Download" %}
{% if media.file %} {{ media.file|get_filename }} {% endif %}
{% endif %}
{% if media.is_image %} {% if media.file %} {% thumbnail media.file "x200" as im %} {% endthumbnail %} {% else %} {% thumbnail media.url "x200" as im %} {% endthumbnail %} {% endif %} {% else %} {% if media.url %} {% if "youtu" in media.url %} {% endif %} {% endif %} {% endif %}
{% endif %}