{% extends 'admin/base.html' %} {% block title %}{{ t('media.edit_title') }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ image.alt_text }}
{{ t('media.image_url_help') }}
{{ t('media.filename') }} {{ image.original_filename or image.filename }}
{% if image.file_size %}{{ t('media.size') }} {{ (image.file_size / 1024)|round(0)|int }} {{ t('common.unit_kb') }}
{% endif %} {% if image.width and image.height %}{{ t('media.dimensions') }} {{ image.width }} ร— {{ image.height }}px
{% endif %} {% if image.mime_type %}{{ t('media.type') }} {{ image.mime_type }}
{% endif %} {% if image.dominant_color %} {{ t('media.dominant_color') }} {{ image.dominant_color }}
{% endif %} {{ t('media.uploaded') }} {{ image.uploaded_at|format_datetime }}
{% set variants = image.get_variants() %} {% if variants and (variants.get('webp') or variants.get('avif')) %}
โšก {{ t('media.generated_variants') }} {% for fmt in ['webp', 'avif'] %} {% if variants.get(fmt) %}
{{ fmt }}: {% for width_key, v in variants[fmt].items() %} {{ width_key }}w ยท {{ (v.size / 1024)|round(0)|int }} {{ t('common.unit_kb') }} {% endfor %}
{% endif %} {% endfor %} {% if variants.get('og') %}
๐Ÿ“ฑ {{ t('media.og_social') }} {% for fmt_key, v in variants['og'].items() %} {{ fmt_key|upper }} ยท {{ (v.size / 1024)|round(0)|int }} {{ t('common.unit_kb') }} {% endfor %}
{% endif %}
{% endif %}
{{ t('media.alt_text_help') }}
/ .{{ image.original_extension }}
{{ t('media.public_slug_help') }}
{{ t('common.cancel') }}
{% endblock %} {% block extra_js %} {% endblock %}