{% extends "layouts/panel.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{{ object.display_title }}{% endblock %} {% block page_title %}{% trans "Media details" %}{% endblock %} {% block content_class %}content-narrow{% endblock %} {% block content %}

{{ object.display_title }}

{% trans "Back to the library" %}
{% if object.is_image %}{{ object.alt_text }} {% elif object.kind == "video" %} {% elif object.kind == "audio" %} {% else %}{% icon "file" 64 %}{% endif %}
{% trans "Original name:" %} {{ object.original_name }}
{% trans "Type:" %} {{ object.get_kind_display }} ({{ object.mime_type }})
{% trans "Size:" %} {{ object.size|filesizeformat }}
{% if object.width %}
{% trans "Dimensions:" %} {{ object.width }} × {{ object.height }}
{% endif %}
{% trans "Uploaded by:" %} {{ object.uploaded_by.display_name|default:"—" }}
{% trans "Upload date:" %} {{ object.created_at|jalali_datetime }}
{% trans "File address" %}
{% if can_manage %}
{% csrf_token %} {% include "partials/_form_errors.html" %} {% include "partials/_field.html" with field=form.title %} {% if object.is_image %}{% include "partials/_field.html" with field=form.alt_text %}{% endif %}
{% icon "trash" 18 %} {% trans "Delete" %}
{% else %}

{% if object.alt_text %}{% blocktrans trimmed with alt_text=object.alt_text %}Alt text: {{ alt_text }}{% endblocktrans %}{% endif %}

{% trans "Only the uploader or an administrator can edit or delete this file." %}

{% endif %}
{% endblock %}