{% extends "telemeta/base.html" %} {% load i18n %} {% load telemeta_tags %} {% block head_title %}{% trans type %}{{resource|prepend:' : '}} - {{ block.super }}{% endblock %} {% block extra_javascript %} {% endblock %} {% if resource %} {% block title %} {{ type|capitalize }} : {{ resource.title }} {% endblock %} {% block title_buttons %}
{% if perms.telemeta.change_mediacorpus or perms.telemeta.change_mediafonds %} {% endif %} {% if user.is_authenticated %} {% endif %} {% if type == 'corpus' and user.is_superuser %} {% endif %}
{% endblock %} {% block content %} {% block infos %}
{% block general_info %}
{% for field in resource.get_fields %} {% if "id" in field.name or "description" == field.name or "public_access" == field.name %} {{ field.label_tag.as_hidden }}{{ field.as_hidden }} {% elif field.get_internal_type == 'TextField' %}
{% trans field.verbose_name|capitalize %}
{{ resource|get_attr:field.name|html_line_break|safe }}
{% else %} {% dl_field resource field.name %} {% endif %} {% endfor %} {% dl_field resource "computed_duration" %} {% for parent in parents %}
{% trans parent.element_type|capitalize %}
{{ parent.title }}
{% endfor %} {% if last_revision %}
{% trans "Last modification" %}
{{ last_revision.time }} {% if user.is_authenticated %}({{last_revision.user.username}}){% endif %}
{% endif %}
{% endblock general_info %} {% if related_media %}
{% block related %} {% include "telemeta/inc/resource_related.html" %} {% endblock related %}
{% endif %}

{{resource.children_type|capitalize }}

{% with resource.children.all as children %} {% include "telemeta/inc/children_list.html" %} {% endwith %}
{% endblock infos %} {% block dublincore %} {% endblock dublincore %} {% endblock content %} {% block delete %} {% if user.is_authenticated and perms.telemeta.delete_mediaresource %} {% endif %} {% endblock delete %} {% else %}

{% trans "No such resource" %}

{% endif %}